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

2010-08-06 Thread Gurkan Erdogdu (JIRA)

[ 
https://issues.apache.org/jira/browse/OWB-385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12895968#action_12895968
 ] 

Gurkan Erdogdu commented on OWB-385:


YING, could you commit the code ?

 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

 Attachments: owb-385-1.patch, owb-385-2.patch

   Original Estimate: 60h
  Remaining Estimate: 60h

 Message-ID: 267326.60362...@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.



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

2010-08-06 Thread Mark Struberg (JIRA)

[ 
https://issues.apache.org/jira/browse/OWB-385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12896026#action_12896026
 ] 

Mark Struberg commented on OWB-385:
---

yes, please go on. Looks much better now!
I don't particularly like things like 
catch (Throwable e) 
{
e.printStackTrace();
}
without any further handling, but we can fix this later on.

 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

 Attachments: owb-385-1.patch, owb-385-2.patch

   Original Estimate: 60h
  Remaining Estimate: 60h

 Message-ID: 267326.60362...@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.



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

2010-08-04 Thread Mark Struberg (JIRA)

[ 
https://issues.apache.org/jira/browse/OWB-385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12895196#action_12895196
 ] 

Mark Struberg commented on OWB-385:
---

another question:
Generally all the Session will get serialized at once and not single beans. 
Replacing single beans would imo be completely uncontrolable and most probably 
lead to inconsistencies.

There are 2 common scenarios for such a clustering

1.) using session replication via memcached 
http://code.google.com/p/memcached-session-manager/
2.) run a EE cluster like geronimo

In both cases, the session will always get passivated as a _whole_.

So isn't a simle HttpSessionActivationListener which just moves the current 
threads SessionContext and ConversationContext into the Session and back enough?

 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

 Attachments: owb-385-1.patch

   Original Estimate: 60h
  Remaining Estimate: 60h

 Message-ID: 267326.60362...@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.



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

2010-08-03 Thread Gurkan Erdogdu (JIRA)

[ 
https://issues.apache.org/jira/browse/OWB-385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12894833#action_12894833
 ] 

Gurkan Erdogdu commented on OWB-385:


Fantastic work YING, I will try it this evening! Thanks a lot!

 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

 Attachments: owb-385-1.patch

   Original Estimate: 60h
  Remaining Estimate: 60h

 Message-ID: 267326.60362...@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.



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

2010-07-28 Thread Mark Struberg (JIRA)

[ 
https://issues.apache.org/jira/browse/OWB-385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12893092#action_12893092
 ] 

Mark Struberg commented on OWB-385:
---

which paragraph in the spec defines this behaviour?

 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: 267326.60362...@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.



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

2010-07-28 Thread Mark Struberg (JIRA)

[ 
https://issues.apache.org/jira/browse/OWB-385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12893192#action_12893192
 ] 

Mark Struberg commented on OWB-385:
---

I honestly do not yet see the problem you like to solve ;)
What do you like to achieve by adding your solution?

We need to tweak our SessionContext and ConversationContext of course, but 
that's a completely different story.

 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: 267326.60362...@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.



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

2010-07-28 Thread Mark Struberg (JIRA)

[ 
https://issues.apache.org/jira/browse/OWB-385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12893218#action_12893218
 ] 

Mark Struberg commented on OWB-385:
---

ok I c. I think we have to put a lot of work into real cluster support. I'd 
prefer to store our beans in the Session and let the container perform session 
distribution instead of doing this ourselfs. Because swapping beans only 
partially might be hard to do right.

 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: 267326.60362...@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.