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
.