servicemix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gert Vanthienen <gert.vanthie...@skynet.be>
Subject Re: Question about Client API and async communication.
Date Tue, 30 Sep 2008 20:37:44 GMT
m.v.,

Can I suggest you start using JMS/ActiveMQ to communicate to 
ServiceMix?  ServiceMIx has an embedded broker running and you will get 
a fast and asynchronous comm channel with the ESB this way.

Regards,

Gert

m.v. wrote:
> I was wondering if it is possible to achieve an asynchronous communication
> with servicemix server using client API. The problem I am facing is that
> when I send an InOut message to servicemix, it blocks my current gui thread
> while waiting for the response. If I use client.send and client.receive the
> thread is blocked while waiting for the result. If I use sendSync it is also
> blocked while waiting the result. Is there some way that I could subscribe
> to some listener that would execute some code only when the result is
> available without blocking... Or maybe I need to use some other approach...
> Any suggestions are welcome...
>
> Thanks in advance,
> m.v.
>   


Mime
View raw message