When running standalone in a JVM its about having at least one non
daemon thread in the JVM so the JVM is not automatic shutdown. So you
should keep the main loop running, and that is what this Camel Main
class is about.




On Mon, Jul 25, 2016 at 8:45 PM, souciance
<souciance.eqdam.ras...@gmail.com> wrote:
> Thanks for the update, although it feels somewhat strange that this would
> somehow make it work for FTP as a special case. Your code is similar to the
> example found on the documentation:
> http://camel.apache.org/running-camel-standalone-and-have-it-keep-running.html
>
> This shouldn't affect at the protocol level e.g. FTP or SFTP. There must be
> some other reason for that.
>
> Anyway, if you do want your Camel routes to run continously on their own,
> you should look for some container for deployment and management. There are
> open source ones like Karaf to JBoss Fuse which you need license for.
>
>
> On Mon, Jul 25, 2016 at 8:35 PM, JSmith [via Camel] <
> ml-node+s465427n5785444...@n5.nabble.com> wrote:
>
>> 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
>>
>>
>> ------------------------------
>> If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://camel.465427.n5.nabble.com/FTP-Route-fails-with-no-errors-tp5785371p5785444.html
>> To start a new topic under Camel - Users, email
>> ml-node+s465427n465428...@n5.nabble.com
>> To unsubscribe from Camel - Users, click here
>> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=c291Y2lhbmNlLmVxZGFtLnJhc2h0aUBnbWFpbC5jb218NDY1NDI4fDE1MzI5MTE2NTY=>
>> .
>> NAML
>> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/FTP-Route-fails-with-no-errors-tp5785371p5785445.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to