问题
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