You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "YING WANG (JIRA)" <ji...@apache.org> on 2010/07/28 03:43:16 UTC

[jira] Commented: (OWB-385) implement passivation of managed beans in ServletContextListener

    [ https://issues.apache.org/jira/browse/OWB-385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12893030#action_12893030 ] 

YING WANG commented on OWB-385:
-------------------------------

My plan is to first add basic failover/passivation support for conversation , session scope beans. Then continue improving it to handle build-in beans and other senarios. 

> implement passivation of managed beans in ServletContextListener
> ----------------------------------------------------------------
>
>                 Key: OWB-385
>                 URL: https://issues.apache.org/jira/browse/OWB-385
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Context and Scopes
>    Affects Versions: 1.0.0-alpha-1
>            Reporter: Eric Covener
>            Assignee: YING WANG
>             Fix For: 1.0.0-alpha-2
>
>   Original Estimate: 60h
>  Remaining Estimate: 60h
>
> Message-ID: <26...@web38203.mail.mud.yahoo.com>
> Currently we have no support for those callbacks for managed beans. Also includes AroundTimeout method.
> Motivation
> ----------------------
> Actually we have 2 methods in  WebBeansConfigurationListener. Currently our session and conversation context does not provided actiovation/passivation. What we have to do is that we update below lifecycle callbacks to put all session and conversation context instances into the session in the "sessionWillPassivate" and call passivate callback, and reverse it on "sessionDidActivate".
> Those areas needs some contributions :)
>    /**
>     * {@inheritDoc}
>     */
>    @Override
>    public void sessionDidActivate(HttpSessionEvent event)
>    {
>        //TODO activation
>       //Gets all passivated instances from passivated session and restore our session and conversation context.
>    }
>    /**
>     * {@inheritDoc}
>     */
>    @Override
>    public void sessionWillPassivate(HttpSessionEvent event)
>    {
>        //TODO Passivation
>       //Gets all instances from the Session and ConversationContexts
>        and add those into the session that is under passivation therefore our bean instances
>        are correctly passivated
>    }
> Thanks;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.