We are using Camel 2.14.3 and ActiveMQ 5.11.1
I have a beanRef call to a receiver:
from(jmsLandingAreaReceipt).beanRef("landingAreaMessageReciever", "onService");
jmsLandingAreaReceipt is a topic of: activemq:topic:here.isSomething
The reciever is already looking at the @Header
to retrieve the CamelFileName
public void onService(@Header("CamelFileName") String fileName)
I am also interested in retrieving the topic. is that possible?
I have been looking at the sites usually available when you type in ActiveMQ, but I cannot work out the attribute or variables that might be needed to pick up the topic used.
答案 0 :(得分:1)
您可以使用标准的JMS标题名称,我认为它是JMSDestination
或JMSDestinationName
。
详情请见:http://docs.oracle.com/javaee/7/api/javax/jms/Message.html