camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From manchandap <manchan...@yahoo.com>
Subject Re: Adding Routes to a running Camel Context
Date Thu, 06 Feb 2014 11:29:16 GMT
Thanks Claus for the quick reply.

I had checked this link. My queries:

# Where should the following code be placed that is in the main class (that
runs the camel context) or some processor.

/// load route from XML and add them to the existing camel context
InputStream is = getClass().getResourceAsStream("barRoute.xml");
RoutesDefinition routes = context.loadRoutesDefinition(is);
context.addRouteDefinitions(routes.getRoutes());/

# Would this require restart the camel that is the camel context
# Can i achieve similar flexibility if I am using Java DSL to define my
routes

Thanks 
Prince Manchanda



--
View this message in context: http://camel.465427.n5.nabble.com/Adding-Routes-to-a-running-Camel-Context-tp5746884p5746887.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message