Is it possible to retrieve an activeMQ topic in a beanRef's method

时间:2015-07-28 15:55:38

标签: java apache-camel activemq

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.

1 个答案:

答案 0 :(得分:1)

您可以使用标准的JMS标题名称,我认为它是JMSDestinationJMSDestinationName

详情请见:http://docs.oracle.com/javaee/7/api/javax/jms/Message.html

相关问题