camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Router <rou...@trash-mail.com>
Subject Re: Passing several POJOs trough multiple routes
Date Tue, 25 Nov 2014 13:06:08 GMT
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.

Mime
View raw message