On Mon, Mar 9, 2009 at 6:21 PM, mam1 <[email protected]> wrote: > > Hi. > > I have a multithreaded environment using Camel's Mina component with Spring > Remoting as following: > > <camel:camelContext> > <camel:proxy id="test_client" > serviceInterface="a.b.c.TestService" > serviceUrl="direct:test_service"/> > > <camel:route id="test_service_mina_route"> > <camel:from uri="direct:test_service"/> > <camel:to > uri="mina:tcp://localhost:8000?textline=false&minaLogger=true&timeout=100000&lazySessionCreation=true&sync=true&exchangePattern=InOut&transferExchange=true"/> > </camel:route> > </camel:camelContext> > > > I am getting unexpected results. One calling thread consumes a result > intended for different calling thread, etc. It looks like there is no > correlation between request and response. I am using camel 1.6.0. For reliable request/reply with correlation I would advice to use JMS.
I assume you use Camel on both the client and server side since you have option: transferExchange=true that will send Camel API objects to the server. Can you show the server side as well? eg the server that listen on port 8000. > > Did anybody encounter similar problem? What am i missing and what is a > solution for this issue? > > Thanks in advance. > > > -- > View this message in context: > http://www.nabble.com/Camel-Mina-Request-Response-correlation-tp22413710p22413710.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/
