Could someone please suggest how to remove a route from a camel context
programatically.

I am using the below code to do it. But not sure if it is working as
expected. I could still see the route from the jconsole.

List<RouteDefinition> list = new ArrayList<RouteDefinition>(); 
list.add(routedefinition); 
camelContext.removeRouteDefinitions(list);

Any help is appreciated.

-- 
View this message in context: 
http://camel.465427.n5.nabble.com/Stopping-and-removing-a-route-programmatically-tp1223859p1235000.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to