I'm attempt to wrap a legacy application in a Phoenix block and run it the
container...

If I implement the Startable interface in my Phoenix block and there's some
code that looks like this in the start() method:

===============
    while (true) {

        try {
            SomeObject obj = blockOnThisMethod();
        } catch (ShutdownException se) {
            break;
        }

        // we're done now...
    }
================

Does this code behave properly in a Phoenix container?  I'm thinking not,
because I've noticed two things happen when I deploy this SAR.

(1) Any additional SAR(s) in my apps directory that is supposed to have
their lifecycle invoked by Phoenix will in fact NEVER initiate and start.
(2) When I shut the Phoenix server down, the JVM never terminates until a
timeout occurs that forcibly kills the Phoenix process.  (Thus no apparent
clean shutdown).

Comments?  Feedback?  Confirmation?




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

Reply via email to