Re: How do I close Netty connections and shutdown my application gracefully?

2013-07-10 Thread ignos
Thanks. I edit the source. SpringCamelContext context = (SpringCamelContext) applicationContext.getBean(contextId); context.start(); ProducerTemplate template = context.createProducerTemplate(); template.sendBody(endPoint, message); context.stop(); "context.stop()" works the way I want it to.

How do I close Netty connections and shutdown my application gracefully?

2013-07-10 Thread ignos
* 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("cam