Hi Did you try this FAQ[1] on how to stop a route from a route? [1] http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html
Taariq On 29 Dec 2011, at 6:12 PM, David Wynter <david_wyn...@yahoo.com> wrote: > Hi, > > I tested on my machine and deployed to my customer, It went boom as follows, > names etc. changed to protect the innocent. > > All I want to do with this route is grab a file from a ftp service, once, > don't poll it annoys them, leave the file intact on their server. I will > control when this route is run externally. I tried it with start() follow by > stop(), > > camelContext.addRouteDefinition(routeD); > camelContext.startRoute(routeD); > but the DefaultShutdownStrategy is flaky, on a slow machine it does not > consider the route started before the stop() is hit, whereas on a fast > machine it does. So I am forced to leave the route running