You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Garry <gm...@hotmail.com> on 2008/01/29 20:47:52 UTC

How does InOut MEP over JMS work?

Hi,

In my app, I configure an InOut MEP on a JMS BC to talk SOAP to
a remote service. My bean then uses sendSync to send to the JMS
endpoint. Everything seems to work fine: I block until the remote 
service response is received, just the behavior I want. What I can't 
figure out is *how* it works.  I've only configured one JMS queue
for sending requests *to* the service. How is the service response
received? How is the response correlated with the request? What
gives the blocking behavior? Is this a safe pattern to use when 
multiple remote services are reading the JMS queue, i.e, do responses
correlate correctly with requests?

Thanks, Garry
-- 
View this message in context: http://www.nabble.com/How-does-InOut-MEP-over-JMS-work--tp15167894s12049p15167894.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: How does InOut MEP over JMS work?

Posted by Guillaume Nodet <gn...@gmail.com>.
If you only specify a single queue, the BC will use a temporary queue
and will do the correlation itself.   So you can send multiple requests
concurrently and everything will work :-)

On Jan 29, 2008 8:47 PM, Garry <gm...@hotmail.com> wrote:
>
> Hi,
>
> In my app, I configure an InOut MEP on a JMS BC to talk SOAP to
> a remote service. My bean then uses sendSync to send to the JMS
> endpoint. Everything seems to work fine: I block until the remote
> service response is received, just the behavior I want. What I can't
> figure out is *how* it works.  I've only configured one JMS queue
> for sending requests *to* the service. How is the service response
> received? How is the response correlated with the request? What
> gives the blocking behavior? Is this a safe pattern to use when
> multiple remote services are reading the JMS queue, i.e, do responses
> correlate correctly with requests?
>
> Thanks, Garry
> --
> View this message in context: http://www.nabble.com/How-does-InOut-MEP-over-JMS-work--tp15167894s12049p15167894.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/