openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cove...@apache.org
Subject svn commit: r944107 - /openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common/interceptor/OpenWebBeansEjbInterceptor.java
Date Fri, 14 May 2010 04:39:18 GMT
Author: covener
Date: Fri May 14 04:39:17 2010
New Revision: 944107

URL: http://svn.apache.org/viewvc?rev=944107&view=rev
Log:
[OWB-372] release null creational context used for @aroundInvoke of non-contextual EJBs

Modified:
    openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common/interceptor/OpenWebBeansEjbInterceptor.java

Modified: openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common/interceptor/OpenWebBeansEjbInterceptor.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common/interceptor/OpenWebBeansEjbInterceptor.java?rev=944107&r1=944106&r2=944107&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common/interceptor/OpenWebBeansEjbInterceptor.java
(original)
+++ openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common/interceptor/OpenWebBeansEjbInterceptor.java
Fri May 14 04:39:17 2010
@@ -429,7 +429,13 @@ public class OpenWebBeansEjbInterceptor
         else
         {
             CreationalContext<?> cc = manager.createCreationalContext(null);
-            return runInterceptorStack(ejbBean.getInterceptorStack(), method, instance, arguments,
ejbBean, cc, ejbContext);
+            try 
+            { 
+                return runInterceptorStack(ejbBean.getInterceptorStack(), method, instance,
arguments, ejbBean, cc, ejbContext);
+            }
+            finally { 
+                cc.release();
+            }
         }
 
     }



Mime
View raw message