How to get the message from temporary Queue in Different session

会有一股神秘感。 提交于 2019-12-06 19:42:28

Usually, you would set the reply-to jms header, and then wherever you consume the message (eg, certainly in a different session..) you can pull out that JMSReplyTo header which would be the temp destination and just reply to that.

You should check the ActiveMQ wiki:

http://activemq.apache.org/how-should-i-implement-request-response-with-jms.html

Your listener can work with any JMS session that you provide,it doesn't have to be the same session as the one that you placed the message with.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!