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(); }
        });

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

Steven Higgins

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

Reply via email to