camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From AnujK <>
Subject Re: Need control back in the Main routine so that we can terminate JVM
Date Mon, 13 Jun 2011 15:25:38 GMT
Thanks Claus.

-Yes, I did follow that example, and am calling
"System.out.println("Starting Camel. Use ctrl + c to terminate the JVM.\n");;"

The problem is ' the main just keeps on running' - which we don't want.

However, I need to terminate my VM when the FTP route is complete.

I can stop/start the routes programatically, but is there a way to signal to
the main thread, that routes have stopped, and you can now terminate. 

In essence, I do not need to be running 'forever'. 

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message