camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Need control back in the Main routine so that we can terminate JVM
Date Mon, 13 Jun 2011 05:59:39 GMT
See this FAQ

It has links to how to keep it running.

On Mon, Jun 13, 2011 at 6:33 AM, AnujK <> wrote:
> A very simple use case running in a standalone JVM environment.
> I use the Main helper class provided by Spring Camel integration.
> Main.setApplicationContext("spring-config.xml")
> Main.start()
> Thread.sleep(180000);
> Main.stop();
> The configuration contains a simple 'sftp' route that pulls the files down
> to a temp directory.
> There are a couple of questions:
> a) If we dont have the Thread.sleep in our call, the Main routine actually
> terminates without the sftp polling consumer even getting a chance to start.
> b) If the sftp polling completed has finished the poll and downloaded the
> files in one session, I want my Main to terminate. How is this feasible?
> Our deployment options do not generally call for a while(true) based
> deployment.
> Any ideas would be helpful
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Twitter: davsclaus, fusenews
Author of Camel in Action:

View raw message