tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xuhaih...@apache.org
Subject svn commit: r1097313 - /openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/stateful/StatefulContainer.java
Date Thu, 28 Apr 2011 03:15:54 GMT
Author: xuhaihong
Date: Thu Apr 28 03:15:53 2011
New Revision: 1097313

URL: http://svn.apache.org/viewvc?rev=1097313&view=rev
Log:
OPENEJB-1532 sessionContext is incorrectly set in undeploy method instead of deploy method
(Patch from Han Hong Fang)

Modified:
    openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/stateful/StatefulContainer.java

Modified: openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/stateful/StatefulContainer.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/stateful/StatefulContainer.java?rev=1097313&r1=1097312&r2=1097313&view=diff
==============================================================================
--- openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/stateful/StatefulContainer.java
(original)
+++ openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/stateful/StatefulContainer.java
Thu Apr 28 03:15:53 2011
@@ -264,9 +264,7 @@ public class StatefulContainer implement
             public boolean matches(Instance instance) {
                 return beanContext == instance.beanContext;
             }
-        });
-
-        beanContext.set(EJBContext.class, this.sessionContext);
+        });        
     }
 
     public synchronized void deploy(BeanContext beanContext) throws OpenEJBException {
@@ -306,6 +304,8 @@ public class StatefulContainer implement
         } catch (NamingException e) {
             throw new OpenEJBException("Failed to bind EJBContext", e);
         }
+        
+        beanContext.set(EJBContext.class, this.sessionContext);
     }
 
     /**



Mime
View raw message