Hi See this FAQ http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html
You can use onException to catch those severe exceptions, and then trigger the route to stop. Alternatively you can use a route policy, and have it stop/suspend the route, in case of a severe exception http://camel.apache.org/routepolicy Just implement the onExchangeDone, and check that the exchange has an exception, and if so, whether its a severe exception, and if so, stop the consumer. On Tue, Jan 31, 2012 at 7:42 AM, alexey-s <[email protected]> wrote: > Hi. > The process of reading a lot of files in a directory. The content of files > stored in the database. > The database server generates an error ORA-00257: archiver error. Connect > internal only, until freed. > It is necessary to correct an error on the database server. It makes no > sense to continue processing the remaining files. > How to stop the Polling Consumer? > > -- > View this message in context: > http://camel.465427.n5.nabble.com/How-to-stop-the-Polling-Consumer-tp5443781p5443781.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
