camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: After camelContext shutdown, is any way to exit the Java main() method?
Date Tue, 23 Jul 2013 09:10:09 GMT
Hi

Maybe there is a non-daemon thread still hanging around and preventing
the JVM from terminating.

You can do a thread dump to see which threads is alive.

But the system exit also works but just a bit more abrupt than a clean shutdown.

On Mon, Jul 22, 2013 at 5:47 PM, bonnahu <bonnahu@gmail.com> wrote:
> Hi Willem,
> After adding System.exit(1) after exchange.getContext().stop(); , it works
> for me. Thanks again!
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/After-camelContext-shutdown-is-any-way-to-exit-the-Java-main-method-tp5735993p5736042.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message