Hi

See this FAQ
http://camel.apache.org/running-camel-standalone.html

Which has a link to this cookbook example how to keep it running
http://camel.apache.org/running-camel-standalone-and-have-it-keep-running.html

2011/6/3 ltomuno <ltom...@163.com>:
> java code:
> CamelContext context = new DefaultCamelContext();
> ... ...
>
>        // start the route and let it do its work
>        context.start();
>        Thread.sleep(2000);
>        // stop the CamelContext
>        context.stop();
> I have to do it every time?
> start sleep stop
> Is there a more elegant way to use CamelContext ?
>
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to