camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Babak Vahdat <>
Subject Re: File consumer - waiting for it to start
Date Fri, 03 Feb 2012 23:47:03 GMT

Starting Camel context (context.start()) does *not* block the main thread.
However when you do a Thread.sleep() you give a chance to the daemon thread
to run the file consumer polling inside, eg 1 polling round, and as it's a
daemon thread it doesn't block the JVM from exiting so that your JVM exits
at the end!

You can take a look at [1] to see how you can keep your Camel standalone
application running.



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

View raw message