Mea culpa,

that code should be:

String replyDestStr = msg.getJMSReplyTo().getQueueName();
// forward the request asynchronously to a 3rd-party system, with
// "replyDestStr" included in the 3rd-party request and response
Queue replyQ = session.createQueue(replyDestStr); 

Code tested so far with ActiveMQ and TIBCO EMS. I expect it will work on
WebsphereMQ as well (com.ibm.mq.jms.MQQueue.getQueueName() seems to return
the expected "queue://queuename/qmgrname" format).

Maarten



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Reply via email to