* camel 2.11.0
* netty 3.6.5.Final
I make a simple main method to try out a simple message with Netty producer.
The message is well sended, but my application is not exit and tcp
connection is not closed.
How do I close TCP connections and shutdown my application gracefully?
sendMessage("camel_tcp", "direct:tcp", "Hello");
public void sendMessage(String contextId, String endPoint, String
message) {
SpringCamelContext context = (SpringCamelContext)
applicationContext.getBean(contextId);
ProducerTemplate template = context.createProducerTemplate();
template.sendBody(endPoint, message);
<camelContext id="camel_tcp"
xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="direct:tcp" />
<to
uri="netty:tcp://localhost:9200?disconnect=true橪;textline=true" />
<to uri="log:tcp_log?level=DEBUG"/>
</route>
</camelContext>
* netty 3.6.5.Final
I make a simple main method to try out a simple message with Netty producer.
The message is well sended, but my application is not exit and tcp
connection is not closed.
How do I close TCP connections and shutdown my application gracefully?
sendMessage("camel_tcp", "direct:tcp", "Hello");
public void sendMessage(String contextId, String endPoint, String
message) {
SpringCamelContext context = (SpringCamelContext)
applicationContext.getBean(contextId);
ProducerTemplate template = context.createProducerTemplate();
template.sendBody(endPoint, message);
<camelContext id="camel_tcp"
xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="direct:tcp" />
<to
uri="netty:tcp://localhost:9200?disconnect=true橪;textline=true" />
<to uri="log:tcp_log?level=DEBUG"/>
</route>
</camelContext>