[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Get topic in activemq 5.15.4

Dear all,

I have just upgrade activemq 5.12.0 to 5.15.4, but have a problem with my
jms client code (using library activemq client)

In activemq.xml, I configure virtual destination topic as below:
					<virtualTopic name=">" prefix="VirtualTopic.*." selectorAware="false"/> 
And in a mqtt client, I sent a message to topic (where
xxxxx using to identify unique client).
In a JMS client, I configure for receive message:
@MessageDriven(activationConfig = {
    @ActivationConfigProperty(propertyName = "acknowledgeMode",
propertyValue = "Auto-acknowledge"),
    @ActivationConfigProperty(propertyName = "destinationType",
propertyValue = "javax.jms.Queue"),
    @ActivationConfigProperty(propertyName = "destination", propertyValue =>")

In JMS client code, I want to get topic of received message
    public void onMessage(Message message) {
             ActiveMQBytesMessage mqtt = (ActiveMQBytesMessage) message;
            String topicStr = mqtt.getDestination();
When JMS client connects to ActiveMQ 5.12.0, the topicStr =
When JMS client connects to ActiveMQ 5.15.4, the topicStr =

My question is How do I configure in activemq.xml of ActiveMQ 5.15.4 then
JMS client can get topicStr = "", I don't want to change
my JMS client code after upgrade ActiveMQ.

Please help me, thanks!

Sent from: