This content has been marked as final.
Show 3 replies
-
1. Re: Reply from asynchrnous JMS Call
hoschi Apr 9, 2008 11:50 AM (in response to hoschi)ah, sorry, forgot that there is a JMSRouter - solved the problem with it :)
-
2. Re: Reply from asynchrnous JMS Call
dsun Apr 11, 2008 11:20 AM (in response to hoschi)Would you please share more info on your solution? Thanks
-
3. Re: Reply from asynchrnous JMS Call
hoschi Apr 14, 2008 3:35 AM (in response to hoschi)I only added a action with JMSRouter to the action pipeline, which sends the answer from the previous actions to a given JMS-queue:
<actions mep="OneWay"> <action name="anyActions" class="org.jboss.soa.esb.actions.soap.SOAPClient"> <property name="wsdl" value="http://somewhere/svc?wsdl" /> <property name="SOAPAction" value="doSomething" /> </action> <!-- some more actions if required --> <action name="routeBack" class="org.jboss.soa.esb.actions.routing.JMSRouter"> <property name="jndiName" value="queue/inet_esb_test_echojms_soapclient_reply" /> <property name="unwrap" value="true" /> </action> </actions>
Another possibility (without JMSRouter) is to set JMSReplyTo before sending the message to the bus:ObjectMessage msg = session.createObjectMessage(content); msg.setJMSReplyTo(jmsReplyDestination); ...
The Property MEP has to be set to "RequestResponse" in this case. Additionally, the message you get back isn't unwrapped, thus not really understandable for a ESB-unaware receiver. So I prefer the first solution.
Hope this helps
Regards
Johannes