openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1001886 - /openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/context/WebContextsService.java
Date Mon, 27 Sep 2010 19:40:20 GMT
Author: struberg
Date: Mon Sep 27 19:40:20 2010
New Revision: 1001886

URL: http://svn.apache.org/viewvc?rev=1001886&view=rev
Log:
OWB-457 directly lookup the sessionContext to prevent lazy initialisation

this happens if the session is going to be destroyed

Modified:
    openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/context/WebContextsService.java

Modified: openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/context/WebContextsService.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/context/WebContextsService.java?rev=1001886&r1=1001885&r2=1001886&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/context/WebContextsService.java
(original)
+++ openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/context/WebContextsService.java
Mon Sep 27 19:40:20 2010
@@ -390,8 +390,8 @@ public class WebContextsService extends 
     private void destroySessionContext(HttpSession session)
     {
         //Get current session context
-        SessionContext context = getSessionContext();
-        
+        SessionContext context = sessionContext.get();
+
         //Destroy context
         if (context != null)
         {



Mime
View raw message