camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smadarapu <srikanth.madar...@adp.com>
Subject Re: Can I cancel a Route suspension.
Date Fri, 13 Jul 2012 15:53:47 GMT
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.

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.

Mime
View raw message