Samples - 6.3

Talend ESB Mediation Developer Guide

EnrichVersion
6.3
EnrichProdName
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
task
Design and Development
EnrichPlatform
Talend ESB

In the route below we use the direct component to link the two routes together:

from("activemq:queue:order.in")
   .to("bean:orderServer?method=validate")
   .to("direct:processOrder");

from("direct:processOrder")
   .to("bean:orderService?method=process")
   .to("activemq:queue:order.out");

and the sample using Spring DSL:

<route>
   <from uri="activemq:queue:order.in"/>
   <to uri="bean:orderService?method=validate"/>
   <to uri="direct:processOrder"/>
</route>

<route>
   <from uri="direct:processOrder"/>
   <to uri="bean:orderService?method=process"/>
   <to uri="activemq:queue:order.out"/>
</route>

See also samples from the Camel Component: SEDA component, how they can be used together.