Paul,
> >I want to handle the case when a Phoenix block calls System.exit().
> >
> >I'm trying the following but none of the shutdown phase
> lifecycle methods (i.e. stop() ) are getting called.
> >
> > Runtime.getRuntime().addShutdownHook(new Thread() {
> > public void run() { theBlockContext.requestShutdown(); }
> > });
> >
> I had previously thought that Pheonix traps it sys exit
> itself and calls
> all the shutdown lifecycle methods correctly. Does not seem
> to be the
> case in 4.0.x or 4.1..
I thought that was the case as well...
> I'll look into it. No change of not calling system exit I
> guess (third
> party API)?
Thanks... Yes, we're trying to avoid the call. The hook is merely preventative at
this stage.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]