How can I keep the CamelContext running after I call start() in a
standalone java application?  Thread.sleep(xxx) does not seem to be an
adequate solution for a production system.



On Tue, Jan 8, 2013 at 9:40 AM, Meriem <[email protected]> wrote:
> I tried with :
>
> CamelContext context = new DefaultCamelContext();
> context.addRoutes(new MyRouteBuilder());
> context.start();
> Thread.sleep(1000);
> context.stop();
> System.out.println("End of the program");
>
> and it worked.
>
> Thank you very much for your help.
>
> Bests,
> Meriem.
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Problem-with-calling-a-simple-POJO-after-a-route-tp5725121p5725134.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to