Reputation: 154
I need to do a POC on it, please Help..
Upvotes: 0
Views: 2306
Reputation: 154
I am able to correlate request response scenario using Spring DSL. With the help of camel, its preety easy.
<route id="request12">
<from uri="WebsphereMq:queue:Queue1"/>
<to uri="bean:mycode"/>
<process ref="msgProcessor"/>
<to uri="WebsphereMq:queue:Queue2 requestTimeout=50s" pattern="InOut"/>
<onException>
<exception>
org.apache.camel.ExchangeTimedOutException
</exception>
<transform>
<simple>Exachange Timeout Error</simple>
</transform>
<to uri="seda:response"/>
</onException>
<to uri="seda:response"/>
</route>
<route id="Response">
<from uri="seda:response" />
<to uri="WebsphereMq:queue:ResponseQ"/>
</route>
Upvotes: 0
Reputation: 1244
For more details check here:
IBM WebSphere MQ request/reply scenario
Sample: https://www.ibm.com/developerworks/community/blogs/messaging/entry/jms_request_reply_sample?lang=en
Upvotes: 1