This content has been marked as final.
Show 1 reply
-
1. Re: Converting an ESB message into JMS message and routing i
beve Aug 11, 2008 4:45 AM (in response to jakkur)Hi,
yes, you are correct that you can use the JMSRouter to achieve this. By setting 'unwrap' to true the message payload will be extracted from the Message object before sending.
The second part about having the response from the external JMS Server route back to an EPR will need the external application to handle the posting of the response.
Upon sending the JMSRouter will set the JMSReplyTo like this:Destination destination = (Destination) esbMessage.getProperties().getProperty( JMSPropertiesSetter.JMS_REPLY_TO ); if ( destination != null ) { jmsMessage.setJMSReplyTo( (Destination) destination ); }
You could simply set the above message property to the JMS destination that you wish the external application to post to. Note the destination should be a jms gateway
Is that what you meant?
Regards,
/Daniel