On 03/28/2017 10:32 AM, chiippy wrote:
Per the activeMQ message Properties definition :  JMSDestination
<http://activemq.apache.org/activemq-message-properties.html>
However, since 5.13.0, the JMSDestination has been changed to be set by the
Consumer instead of the Producer ?

When using camel activemq,  I have

Producer : to("activemq:topic:VirtualTopic.A.B.channel1.payment")

Consumer : from("activemq:queue:Consumer.myid.VirtualTopic.A.B.*.payment")

n 5.12.1, Logging the JMSDestination property, the value is
"topic://VirtualTopic.A.B.channel1.payment". This does match the definition
above.

However, when upgrades to 5.13.0, the logging value becomes
"queue://Consumer.myid.VirtualTopic.A.B.*.payment" which is the consumer
subscribed queue name, but not the producer topic ?

I raised the question in Camel forum,  Camel Query
<http://camel.465427.n5.nabble.com/Camel-Activemq-property-JMSDestination-value-different-between-5-12-1-and-5-13-0-td5796294.html#a5796300>
, I have been told to raise here.

Anyone able to help as how can I get the Producer queue name from Consumer
side ?  In my application, I am using JSMReplyTo for Consumer responses, and
I am using the JMSDestination to set it at the Consumer end.  As now this
value has been changed, I am lost as how to find out the original queue name
which the producer used.

Thanks

Alex



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/JMSDestination-value-different-between-5-12-1-and-5-13-0-tp4724196.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

You could try casting the message to the ActiveMQMessage type and checking the value of the Original Destination property. The current behavior matches what I'd expect it to be.


--
Tim Bish
twitter: @tabish121
blog: http://timbish.blogspot.com/

Reply via email to