This content has been marked as final.
Show 2 replies
-
1. Re: Handling service response in a standalone JMS client
beve Aug 5, 2009 2:13 AM (in response to badlan)Hi badlan,
According to the "Programmers Guide", and correct me if I am wrong, once the last action finishes processing the message, the action pipeline automatically places the message on the queue: (<request queue name>_reply), given that the actions mep attribute is set to RequestResponse in jboss-esb.xml.
If the pipeline is specified with a MEP (Message Exchange Pattern) set to 'RequestResponse' then a reply will be sent to the ReplyTo EPR of the request ESB Message or, if a ReplyTo was not set set, a reply will be sent to the From EPR of the request ESB Message.
This means that your gateway would need to set the ReplyTo on the ESB Message by specifying a 'composer-class' for you JMS Gateway listener.
For your use case, I would use the JMSRouter like you have done. I think that is the simplest solution. If you've not seen it already there is a jms_router quickstart which also demonstrates message correlation in the ESB.
But let me know if this does not fit your requirements and I'll see if I can come up a different approach.
Regards,
/Daniel -
2. Re: Handling service response in a standalone JMS client
domingo.gomez1 Aug 25, 2009 11:11 AM (in response to badlan)I want use the JMS approch too, but without the JMSRouter trick, because the service is used through the native ESB bus too.
Any advice?
BR / DGOM