activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nauman73 <>
Subject Re: Advisory messages for remote broker clients?
Date Wed, 16 Jul 2014 07:55:53 GMT
Hi ceposta

I am having little problem with routing of advisory messages to opposite
broker. While the advisory message does appear to get routed to opposite
broker, the format of the advisory message is not the same as the original
message. The route declaration is as follows. I have followed the example
given at "Consuming Advisory Messages" section of
<>   with some modification.

<description>Connection Advisory Route</description>
<to uri="activemqRemote:topic:ActiveMQ.Advisory.Routed"/>

The issue I have is that the "dataStructure" of the routed ActiveMQMessage
is always null. Whereas the "dataStructure" of the original advisory message
has the RemoveInfo, ProducerInfo etc. depending on type of activity. If I
run the example route given at above mentioned URL, I do get the proper
"dataStructure" written to the output file used in that example.

If I change my route to match the route given in the example, except for the
"to" endpoint, the route becomes as follows.

<description>Connection Advisory Route</description>
<convertBodyTo type="java.lang.String"/>
<to uri="activemqRemote:topic:ActiveMQ.Advisory.Camel"/>

With this route, the routed message type is changed to "ActiveMQTextMessage"
instead of the "ActiveMQMessage". The "dataStructure" is still null.

I have tried variations of above route definition. I have also tried to set
the "jmsMessageType" and "mapJmsMessage" options differently. None of these
works and I always get the dataStructure as null in the advisory message
routed to opposite broker.

Any clues?



View this message in context:
Sent from the ActiveMQ - Dev mailing list archive at

View raw message