You don't have to kill the process by hand using "kill -9" :-) You can still make use of the way described in the link I sent you already. Then do consume files with sendEmptyMessageWhenIdle option [1] and then see how to shutdown your application [2] when *you* detect there're no more files to consume inside the Processor.
[1] http://camel.apache.org/file2.html [2] http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html Babak -- View this message in context: http://camel.465427.n5.nabble.com/File-consumer-waiting-for-it-to-start-tp5455062p5455909.html Sent from the Camel - Users mailing list archive at Nabble.com.