camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem.Jiang" <willem.ji...@gmail.com>
Subject Re: Add a Processor to a route at runtime
Date Wed, 23 Mar 2011 03:37:47 GMT
Can I know why you want to add Processor into the route?
I don't think current Camel provides that kind of API you want.

You may consider to use this handy Intercept[1] of Camel instead of add the
processor to the route. 

[1]http://camel.apache.org/intercept.html

Willem

JacobS wrote:
> 
> Hi
> 
> Is it possible to alter an existing running route and add a Processor to
> some point at the routes sequence using the camel api ? 
> 
> something like :
> 
> Route route = camelContext.getRoute(routeID);
> route.suspend();
> route.addProcessor(new SomeProcessor());
> route.resume();
> 
> If it is possible please post a simple example.
> 
> Thanks,
> Jacob
> 

--
View this message in context: http://camel.465427.n5.nabble.com/Add-a-Processor-to-a-route-at-runtime-tp4257724p4258152.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message