Hi,

with the following code, it is possible to dynamically add routes to a
running camel context. That is great.
       
       ModelCamelContext modelCamelContext = (ModelCamelContext)
camelContext ;
       InputStream is = new ByteArrayInputStream(routeXML.getBytes());
       RoutesDefinition routes = modelCamelContext.loadRoutesDefinition(is);
       modelCamelContext.addRouteDefinitions(routes.getRoutes()); 
But if you look at the endpoint they need more configuration that doesn't
reside in the route. For example for is order to use the jaxrs client a 
<jaxrs:client> and <dataformat> configuration is needed.

I was wondering is there is way to load also the configuration needed for
the endpoints of the routes dynamically into camel context?

Thanks,
Ali





-----
Alireza Salemi
--
View this message in context: 
http://camel.465427.n5.nabble.com/dynamically-add-endpoint-configuration-to-the-context-tp5759391.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to