activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raul Kripalani <ra...@apache.org>
Subject Re: Why is brokerPath not a message property?
Date Thu, 24 Mar 2016 21:48:00 GMT
You could always subclass the plugin and change it as you wish.

Cheers,
Raúl.
On 24 Mar 2016 8:08 p.m., "Raffi" <raffi.onjava@gmail.com> wrote:

> We're testing network of brokers using brokerPath to validate which brokers
> the message visited. Based on our observations, "brokerPath" is not a
> message property or header, and the only way to access it is casting
> message
> to ActiveMQMessage. No need to explain why this is not ideal; is there no
> alternative?
>
>
> TextMessage message = ...
> log("exists: " + message.propertyExists("brokerPath"));  //false
> ActiveMQTextMessage amqMessage = (ActiveMQTextMessage)message;
> amqMessage.getBrokerPath();
>
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Why-is-brokerPath-not-a-message-property-tp4709942.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message