You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by David Roussel <na...@diroussel.xsmail.com> on 2010/03/08 01:04:50 UTC
Re: Starting camel context not blocking
There are some none-spring java examples in the Camel in Action book. So I
guess they can be found here: http://code.google.com/p/camelinaction/
This is about as simple as it gets:
http://code.google.com/p/camelinaction/source/browse/trunk/chapter1/file-copy/src/main/java/camelinaction/FileCopierWithCamel.java
David
jpcook wrote:
>
> Hi,
>
> I noticed that calling start() on camel context doesn't block the thread
> anymore which it used to do in earlier versions of camel. I think this is
> the correct behavior of Camel 2.0.
>
> But I wondered if there was a simple example of starting the context and
> stopping it exiting straight away without using Spring?
>
> I've been looking at the MainSupport class from org.apache.camel.util as a
> starting point to have blocked until you hit ctrl + c or call stop() on
> CamelContext but the only example I can see has lots of Spring stuff in
> it?
>
> Thanks
>
--
View this message in context: http://old.nabble.com/Starting-camel-context-not-blocking-tp27714451p27714520.html
Sent from the Camel - Users mailing list archive at Nabble.com.