Hi,

Do you want to stop the route or do you want to stop the aggregation into a zip 
file?

If you really want to stop the route, you can do that with the controlbus 
component.

http://camel.apache.org/controlbus-component.html 

If you just want to aggregate files into a zipfile till you have consumed 
everything, you might have a look into the examples for the camel-zipfile data 
format.

http://camel.apache.org/zip-file-dataformat.html 

Best regards
Stephan

-----Original Message-----
From: Ishada [mailto:[email protected]] 
Sent: Freitag, 20. November 2015 09:58
To: [email protected]
Subject: Stop the route when there is no file on the SFTP component

 0
down vote
favorite
        

I am trying to zip all the files on the SFTP endpoint and move it to some
other location. It is working fine but if there are no files on the SFTP
endpoint I need to stop the route. There is an option
sendEmptyMessageWhenIdle on file endpoint to handle such scenario. Is there
a way I can implement this scenario?




--
View this message in context: 
http://camel.465427.n5.nabble.com/Stop-the-route-when-there-is-no-file-on-the-SFTP-component-tp5774141.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to