Hi,

I would like an easy way to stop a route from processing any more messages, by 
defining some boolean condition so that the route should run only if the 
condition is true.

The condition doesn't have to be connected in any way with the payload. Instead 
it could involve performing a http GET and only proceeding if the result is a 
"200 OK", or check that some file exist, or doesn't exist, in some folder 
somewhere. It is that last part I need in my project. I would like to be able 
to stop a route by simply placing a file "camel.stop" or similar in some folder.

Adding this logic in a custom processor class doesn't help, because the route 
in question starts with a File component that has delete=true, and if the file 
"camel.stop" is present then I don't want any files deleted.

What would you say is the best way to achieve this?

Regards
/Jimi

Reply via email to