Thank you guys for your help! Here's a simple example that works for me:

DataToPOJOProcessor:
exchange.setProperty("MyProperty", myObject); // assume method
myObject.getName();

Camel.xml:
<route id="Myroute1">
        <from uri="MyQueue:incomingData"/>
        <process ref="DataToPOJOProcessor"/>
        <to uri="MyQueue:pojo?transferExchange=true"/>
</route>

<route id="Myroute2">
        <from uri="MyQueue:pojo"/>
        <log message="${property[MyProperty].name}"></log>
        <to uri="mock:test"/>
</route>
 



--
View this message in context: 
http://camel.465427.n5.nabble.com/Passing-several-POJOs-trough-multiple-routes-tp5759575p5759585.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to