cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kris Schneider <kschnei...@gmail.com>
Subject [Java Flow] Why doesn't sendPage automatically invalidate the continuation?
Date Thu, 27 Oct 2005 15:11:06 GMT
We're using Java Flow and it looks like continuations are not
invalidated by calling sendPage. Is there a reason to keep a
continuation around after invoking sendPage? Is it a problem if we
override the AbstractContinuable impl with something like:

public class MyContinuable extends AbstractContinuable {

    public void sendPage(String uri, Object bizdata) {
        super.sendPage(uri, bizdata);
        Map objectModel = getObjectModel();
        WebContinuation webContinuation =
FlowHelper.getWebContinuation(objectModel);
        ContinuationsManager mgr =
(ContinuationsManager)getComponent(ContinuationsManager.ROLE);
        mgr.invalidateWebContinuation(webContinuation);
    }
}

Thanks for any insight.

--
Kris Schneider <mailto:kschneider@gmail.com>

Mime
View raw message