[seam-commits] Seam SVN: r14667 - branches/community/Seam_2_3/jboss-seam/src/main/java/org/jboss/seam/core.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Fri May 11 09:37:25 EDT 2012


Author: manaRH
Date: 2012-05-11 09:37:25 -0400 (Fri, 11 May 2012)
New Revision: 14667

Modified:
   branches/community/Seam_2_3/jboss-seam/src/main/java/org/jboss/seam/core/SynchronizationInterceptor.java
Log:
JBSEAM-4943 disabled synchronization for SFSB due new impl in AS7 and Java EE6

Modified: branches/community/Seam_2_3/jboss-seam/src/main/java/org/jboss/seam/core/SynchronizationInterceptor.java
===================================================================
--- branches/community/Seam_2_3/jboss-seam/src/main/java/org/jboss/seam/core/SynchronizationInterceptor.java	2012-05-11 12:19:09 UTC (rev 14666)
+++ branches/community/Seam_2_3/jboss-seam/src/main/java/org/jboss/seam/core/SynchronizationInterceptor.java	2012-05-11 13:37:25 UTC (rev 14667)
@@ -4,6 +4,8 @@
 import java.util.concurrent.TimeUnit;
 import java.util.concurrent.locks.ReentrantLock;
 
+import javax.ejb.Stateful;
+
 import org.jboss.seam.annotations.intercept.AroundInvoke;
 import org.jboss.seam.annotations.intercept.Interceptor;
 import org.jboss.seam.annotations.intercept.InterceptorType;
@@ -45,7 +47,8 @@
    
    public boolean isInterceptorEnabled()
    {
-      return getComponent().isSynchronize();
+      // JBSEAM-4943
+      return getComponent().isSynchronize() && !getComponent().businessInterfaceHasAnnotation(Stateful.class);
    }
 
 }



More information about the seam-commits mailing list