Resource r = null
        try {
                r = getResource();
                <LOGIG, SHOW FORMS, FLOW, ETC.>
        }
        catch (...) {
                ...
        }
        finally {
                r.free();
        }

As convenient continuations might be - NEVER EVER KEEP RESOURCES AROUND LIKE THAT!!

Think about what that means! Continuation are "cloned" with every resume! Always release resources before the suspend. Only stateless resources can be kept in the ContinuationContext (e.g. the component manager)

cheers
--
Torsten

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

Reply via email to