camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Camel-Mina Request/Response correlation
Date Tue, 10 Mar 2009 07:46:24 GMT
On Mon, Mar 9, 2009 at 6:21 PM, mam1 <dbrandt@novator.com> 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&amp;minaLogger=true&amp;timeout=100000&amp;lazySessionCreation=true&amp;sync=true&amp;exchangePattern=InOut&amp;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/

Mime
View raw message