I am doing message transfer with Active MQ's. When i transfer the Message
contents to a ActiveMq Endpoint, All the camel exchange properties are lost.
How to use exchange properties with Active Mq.
My Implementation.,
<route>
<from uri="activemq:personnel.records"/>
<choice>
<when>
<xpath>/person/city = 'London'</xpath>
*<camel:setProperty propertyName="Value">
<constant>london</constant>
</camel:setProperty>*
<camel:log message="Property value is
...${property.Value}"></camel:log>--Values logged here
<to uri="activemq:topic:London"/>
</when>
<otherwise>
*<camel:setProperty propertyName="Value">
<constant>others</constant>
</camel:setProperty>*
<camel:log message="Property value is
...${property.Value}"></camel:log>--Values logged here
<to uri="activemq:topic:Others"/>
</otherwise>
</choice>
</route>
<route>
<from uri="activemq:topic:London"/>
<camel:log message="Property value is
...${property.Value}"></camel:log>--Values not logged here
<log message="Message in topic london is..${body}"></log>
</route>
<route>
<from uri="activemq:topic:Others"/>
<camel:log message="Property value is
...${property.Value}"></camel:log>--Values not logged here
<log message="Message in topic Others is..${body}"></log>
</route>
--
View this message in context:
http://camel.465427.n5.nabble.com/How-to-have-Camel-Exchange-Properties-while-doing-message-transfer-with-ActiveMq-tp5761116.html
Sent from the Camel - Users mailing list archive at Nabble.com.