Can't you register a shutdown hook at start up that will do the right
thing--send shutdown to shell service or stop bundle 0--when
System.exit(0) is called?

@D

On Tue, Nov 17, 2009 at 12:46 PM, Patrick Forhan <[email protected]> wrote:
> We have an OSGi application we occasionally remotely shut down.  In
> very rare instances, we get a java.lang.ThreadDeath error, and the
> shutdown does not proceed.  My questions then are:  What are the ways
> to shut down Felix?
>
> Likely by accident, we have two ways we do it:  either by sending
> "shutdown" to the shell service, or by stopping bundle 0.  Would
> anything go wrong if we change from our current strategies to a simple
> System.exit(0)?
>
> Ancient versions we are using:
> [   0] [Active     ] [    0] System Bundle (1.2.1)
> [  67] [Active     ] [    2] Apache Felix Shell Service (1.0.2)
> [  68] [Active     ] [    2] Apache Felix Shell TUI (1.0.2)
>
> Pat.
>
> --
> Defy mediocrity.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>



-- 
Follow me on twitter: djgallardo

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to