[jboss-cvs] JBossAS SVN: r60620 - trunk/ejb3/src/main/org/jboss/ejb3/stateful.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Sun Feb 18 22:55:30 EST 2007
Author: bstansberry at jboss.com
Date: 2007-02-18 22:55:30 -0500 (Sun, 18 Feb 2007)
New Revision: 60620
Modified:
trunk/ejb3/src/main/org/jboss/ejb3/stateful/StatefulBeanContextReference.java
Log:
[EJBTHREE-867] Loosen coupling of lifecycle of nested SFSBs
Modified: trunk/ejb3/src/main/org/jboss/ejb3/stateful/StatefulBeanContextReference.java
===================================================================
--- trunk/ejb3/src/main/org/jboss/ejb3/stateful/StatefulBeanContextReference.java 2007-02-19 03:54:32 UTC (rev 60619)
+++ trunk/ejb3/src/main/org/jboss/ejb3/stateful/StatefulBeanContextReference.java 2007-02-19 03:55:30 UTC (rev 60620)
@@ -35,6 +35,9 @@
*/
public class StatefulBeanContextReference implements Externalizable
{
+ /** The serialVersionUID */
+ private static final long serialVersionUID = 2644760020735482423L;
+
private transient StatefulBeanContext beanContext;
private Object oid;
private String containerId;
@@ -69,7 +72,9 @@
if (beanContext == null)
{
StatefulContainer container = (StatefulContainer)Ejb3Registry.getContainer(containerId);
- beanContext = container.getCache().get(oid);
+ // We are willing to accept a context that has been marked as removed
+ // as it can still hold nested children
+ beanContext = container.getCache().get(oid, false);
}
return beanContext;
}
More information about the jboss-cvs-commits
mailing list