How To get JMS Destination from WMQ

杀马特。学长 韩版系。学妹 提交于 2019-12-20 05:54:10

问题


I am consuming a message from wmq using spring integration but i am not able to get JMS Destination in message header. I would want to know the queue name from where the message is consumed. In active mq we will be getting a parameter called JMS Destination where the queue name will be available. Is there a possiblity to find queue name from wmq using spring integration message.


回答1:


In Spring Integration, the JMSDestination is mapped to a header named jms_destination (JmsHeaders.DESTINATION).

See Mapping Message Headers to/from JMS Message .

The default mapper is the DefaultJmsHeaderMapper.



来源:https://stackoverflow.com/questions/50392330/how-to-get-jms-destination-from-wmq

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