How to use a new tcp connection for each message in Mina ?

2013-12-16 Thread Shing Hing Man
Hi,  I am using Camel 2.11.1 Mina, to send tcp messages to a remote load balancer. The load balancer  forwards the tcp messages to three workers in a  round robin fashion.  By default (please correct me if I am wrong), a tcp connection created by Mina will be kept alive until timeout. Consequen

Re: How to use a new tcp connection for each message in Mina ?

2013-12-16 Thread Claus Ibsen
There is a disconnect option you can try http://camel.apache.org/mina On Mon, Dec 16, 2013 at 11:46 AM, Shing Hing Man wrote: > Hi, > > I am using Camel 2.11.1 Mina, to send tcp messages to a remote load > balancer. The load balancer forwards the tcp messages to three workers in a > round ro

Re: How to use a new tcp connection for each message in Mina ?

2013-12-16 Thread Shing Hing Man
Hi,    I have tried  setting "disconnect" to true in the producer end point.  But I got an exception when trying to send more than 3 messages. (The stack trace and my demo program is my first email.") Shing   On Monday, December 16, 2013 10:57 AM, Claus Ibsen wrote: There is a disconnec