Steven,

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..

Is there a better way? It seems as if Phoenix is gone before this hook fires.

I'll look into it. No change of not calling system exit I guess (third party API)?

- Paul


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to