tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1231786 - /openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/cdi/CdiAppContextsService.java
Date Sun, 15 Jan 2012 23:00:41 GMT
Author: rmannibucau
Date: Sun Jan 15 23:00:40 2012
New Revision: 1231786

URL: http://svn.apache.org/viewvc?rev=1231786&view=rev
Log:
if the scope context is null or not active the session should be created lazily (in both cases
and not only the first one)

Modified:
    openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/cdi/CdiAppContextsService.java

Modified: openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/cdi/CdiAppContextsService.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/cdi/CdiAppContextsService.java?rev=1231786&r1=1231785&r2=1231786&view=diff
==============================================================================
--- openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/cdi/CdiAppContextsService.java
(original)
+++ openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/cdi/CdiAppContextsService.java
Sun Jan 15 23:00:40 2012
@@ -356,8 +356,7 @@ public class CdiAppContextsService exten
 
     private Context getSessionContext() {
         SessionContext context = sessionContext.get();
-        if (context == null) {
-
+        if (context == null || !context.isActive()) {
             lazyStartSessionContext();
             context = sessionContext.get();
         }



Mime
View raw message