Hi, You are right. The stopRoute() is responsible for stopping the route from the Camel Context.
The removeRoute() however stops the RouteService associated with the route. Since the RouteService is associated with a collection of routes, performing this operation has an unintended consequence of shutting down the RouteServices and removing of other routes managed by the RouteService... This is a bug or at the least an incorrectly named API. I will raise this as a bug. Watch for the Jira link in my following note. Cheers, Ashwin... ----- --------------------------------------------------------- Ashwin Karpe Apache Camel Committer & Sr Principal Consultant FUSESource (a Progress Software Corporation subsidiary) http://fusesource.com Blog: http://opensourceknowledge.blogspot.com --------------------------------------------------------- -- View this message in context: http://camel.465427.n5.nabble.com/Removing-routes-programmatically-tp4556741p4557011.html Sent from the Camel - Users mailing list archive at Nabble.com.