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.
* 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