You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by reena upadhyay <re...@outlook.com> on 2014/02/12 09:21:58 UTC

How to get response of one camel route inside other camel route

Hi ,

I want the response of one camel route inside the other camel route.

Like for example I have two camel routes route1 and route2 with entry point camelEntryServicePoint1 and camelEntryServicePoint2 resp. Now I want the reponse of route2 to be used inside route1 or to access route2 inside route1.

route1

<route>
      <from uri="camelEntryServicePoint1" />
       <to uri="bean:studentClient?method=findStudents"/> -->
        <process ref="findStudentsRespProcessor"/> 
</route>

route2

<route >
        <from uri="camelEntryServicePoint2" />
        <to uri="bean:schoolClient?method=findSchools"/> -->
       <process ref="findStudentsRespProcessor"/> 
</route>

Any suggestion?



 		 	   		  

Re: How to get response of one camel route inside other camel route

Posted by scottdawson <sc...@gmail.com>.
Or you may be able to use the  direct <http://camel.apache.org/direct.html>  
component if both routes are in the same camelContext.

Regards,
Scott



--
View this message in context: http://camel.465427.n5.nabble.com/How-to-get-response-of-one-camel-route-inside-other-camel-route-tp5747165p5747190.html
Sent from the Camel - Users mailing list archive at Nabble.com.