JVM doen't exit in Spring Integrations -


i'm new spring integration , i'm using following code,

public class main {

/**  * @param args  */ public static void main(string[] args) {     applicationcontext applicationcontext = new classpathxmlapplicationcontext(             "trail03applicationcontext.xml");     messagechannel channel = applicationcontext.getbean(             "hellomessagechannel", messagechannel.class);     message<string> message = messagebuilder.withpayload("world").build();     channel.send(message);   } 

}

i don't have problems in code jvm doesn't exit after sending message. still runs in background. evident jvmvisual viewer. there needs shut down. i'm using eclipse testing applications.

this application context

<?xml version="1.0" encoding="utf-8"?>  <beans:beans xmlns="http://www.springframework.org/schema/integration" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:beans="http://www.springframework.org/schema/beans" xsi:schemalocation="http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">  <channel id="hellomessagechannel">  </channel>   <gateway service-interface="trail03.api.messageservice" id="mygateway" default-request-channel="hellomessagechannel"/>  <service-activator input-channel="hellomessagechannel"     ref="hellomessageservice" method="sayhello" />   <beans:bean id="hellomessageservice" class="trail03.impl.messageserviceimpl" /> 


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -