Can I do this?
context.start();
while (!context.getRouteStatus("ftp").isStopped())
{
//
}
Or is this a hack?
--
View this message in context:
http://camel.465427.n5.nabble.com/Do-i-need-to-wait-for-endpoint-ftp-to-finish-tp4994642p4997419.html
Sent from the Camel - Users mailing list ar
Hi,
I think I understand what you mean, but still the context still seems to be
shut down.
Can you please give me some more tips here?
Here is my code:
public void transferFilesToFtp(final String ftpLocation) throws Exception {
final CamelContext context = new DefaultCamelContext();
context.
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("f