Hi

On Tue, Jan 8, 2013 at 2:38 PM, Meriem <[email protected]> wrote:
> Hi,
> I'm triying to run a route and do something else after (calling a POJO or
> just printing something); with the following code :
> Main main = new Main();
>          main.enableHangupSupport();
>          main.addRouteBuilder(new MyRouteBuilder());
>          main.addRouteBuilder(new MyRouteBuilder2());
>          main.run(args);
>         System.out.println("End of the program");
> the MyRouteBuilder and MyRouteBuilder2 are two classe extending the
> RouteBuilder class and containing routes.
> So the routes are executed, but anything after (the println command) is
> ignored.
> How can I solve this problem?

See this FAQ
http://camel.apache.org/running-camel-standalone-and-have-it-keep-running.html

So the main.run() will keep Camel running until you either stop Camel
or terminate the JVM.
And that is why would wont see the println, until you hit cltr + c to
terminate the JVM.



> Thank you in advance 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-tp5725121.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to