In the below snippet, I want the property empNo to be available in the route3. 
Is it possible?
My ultimate goal here is that I want to use a value derived from the URI in 
Multicast first route to be available in the multicast second route. How to 
achieve it? Please help.

<route id="1">
--some stuuf goes here--
<to uri="serviceURI1"/>
<setBody><simple>${body}</simple></setBody>
<multicast>
<to uri="direct:route2"/>
<to uri="direct:route3"/>
</multicast>
</route>
<route id="2">
<from uri="direct:route2"/>
<to uri="serviceURI2"/>
<setProperty 
propertyName="empNo"><xpath>/result/empNo/text()</xpath></setProperty>
</route>
<route id="3">
<from uri="direct:route3"/>
   <log message="${property.empNo}"/> --Prints nothing as empNo is not 
available in this route
</route>

Reply via email to