On Fri, Jul 13, 2012 at 5:53 PM, smadarapu <srikanth.madar...@adp.com> wrote: > Thanks for the response, that what i thought. > > The reason... > > I have a route that is listening to a folder for a particular file. As soon > as it finds the file the route starts, takes the contents of the file and > produces a bunch of events that are consumed and processed by other routes. > The job of this route is to produce events. > > While the events are being processed i don't want any other files to be > processed, so I am suspending the route immediately after getting a file. > After the produced events are processed another event "COMPLETED" is > generated and the file route gets resumed. > > While the file route producing the events if an irrecoverable exception > happens, the processing will be stopped and i want to resume the file route. > But i have already issued the suspend call. That's why I had the need to > cancel the suspension, which i solved differently. >
Just resume it when its done suspending. Its super fast to suspend/resume a file consumer route. > HTH. > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Can-I-cancel-a-Route-suspension-tp5715878p5716017.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen