camel-users mailing list archives

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

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 <> wrote:
> Hi Willem,
> After adding System.exit(1) after exchange.getContext().stop(); , it works
> for me. Thanks again!
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Red Hat, Inc.
Twitter: davsclaus
Author of Camel in Action:

View raw message