[jboss-dev-forums] [Design of JBoss ESB] - Request-reply JMS gateway
bernard.tison
do-not-reply at jboss.com
Thu Jul 19 10:53:30 EDT 2007
>From what I've seen implementing a request/reply message exchange pattern using JMS as transport channel in the ESB is not trivial. The JMSgatewayListener is one-way only, so you have to make sure that you have a JMSRouter in your action processing pipeline that will process the reply message. Plus you have to make sure that the JMSMessageId and the JMSReplyTo fields from the incoming message are not lost.
Couldn't we have a request/reply JMSGatewayListener that:
- is bound to a queue
- wraps incoming payload in a ESB message, and takes care of the JMSMessageID and replyTo fields
- sets a replyToEPR in the message header
- listens on the queue associated with the replyToEPR
- takes the reply, unwraps it, sets the JMSCorrelationId and finally puts it on the replyTo queue.
Thoughts?
Bernard
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065842#4065842
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065842
More information about the jboss-dev-forums
mailing list