是否可以在 beanRef 的方法中检索 activeMQ 主题

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

我们正在使用 Camel 2.14.3 和 ActiveMQ 5.11.1

我有一个对接收器的 beanRef 调用: from(jmsLandingAreaReceipt).beanRef("landingAreaMessageReciever", "onService");

jmsLandingAreaReceipt 的主题是:activemq:topic:here.isSomething

收件人已经在查看 @Header 以检索 CamelFileName public void onService(@Header("CamelFileName") String fileName)

我也有兴趣找回话题。那可能吗?

我一直在查看您输入 ActiveMQ 时通常可用的站点,但我无法计算出选择所用主题可能需要的属性或变量。

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

查看更多信息:http://docs.oracle.com/javaee/7/api/javax/jms/Message.html