问题描述
我正在使用Spring集成从wmq消费一条消息,但无法在消息头中获取JMS Destination.我想知道使用消息的队列名称.在活动的mq中,我们将获得一个名为JMS Destination的参数,队列名称将可用.是否可以使用spring集成消息从wmq查找队列名称.
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.
推荐答案
在Spring Integration中,JMSDestination
映射到名为jms_destination
(JmsHeaders.DESTINATION
)的标头.
In Spring Integration, the JMSDestination
is mapped to a header named jms_destination
(JmsHeaders.DESTINATION
).
请参见将消息标头映射到/自JMS消息.
See Mapping Message Headers to/from JMS Message.
默认映射器是DefaultJmsHeaderMapper
.
这篇关于如何从WMQ获取JMS目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!