camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JSmith <js3685...@gmail.com>
Subject Re: FTP Route fails with no errors
Date Mon, 25 Jul 2016 18:35:41 GMT
Final post:

For anyone who comes across this and has the same issue...

Inside where ever you're calling your main() method you can simply do the
following:

import org.apache.camel.spring.Main;
...
public static void main..{
    Main main = new Main();
    main.setApplicationContextUri("whatever.xml");
    main.run();

}

The above code will allow your FTP route to continuously run without
interruption like the SFTP route does naturally.  

In order to stop it, just CTRL+C 

Thanks for the help




--
View this message in context: http://camel.465427.n5.nabble.com/FTP-Route-fails-with-no-errors-tp5785371p5785444.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message