Hello,

I've got a very simple question.
I want to copy files from the outbox to an ftp.
So I have the route and it works fine.
But when do I need to close the camelContext?
When I close it too early the ftp might not be finished.

What is the best approach? I dont want to do thread.sleep.

from("file://outbox")
        .errorHandler(deadLetterChannel("direct:error"))
        .log("Going to FTP!").to("ftp://whatever.com";).log("FTP Done!");

from("direct:error").log("Error occured during FTP").to(
        "file://errorbox");

--
View this message in context: 
http://camel.465427.n5.nabble.com/Do-i-need-to-wait-for-endpoint-ftp-to-finish-tp4994642p4994642.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to