As Claus already mentioned in this thread, have a look at
http://camel.apache.org/running-camel-standalone-and-have-it-keep-running.html
.

Best,
Christian

On Wed, Jan 9, 2013 at 5:01 PM, Mark <elihusma...@gmail.com> wrote:

> 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 <mbenha...@gmail.com> 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