tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andygumbre...@apache.org
Subject svn commit: r1357648 - /openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/BeanContext.java
Date Thu, 05 Jul 2012 14:51:19 GMT
Author: andygumbrecht
Date: Thu Jul  5 14:51:19 2012
New Revision: 1357648

URL: http://svn.apache.org/viewvc?rev=1357648&view=rev
Log:
Only check @Lock for Singleton

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

Modified: openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/BeanContext.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/BeanContext.java?rev=1357648&r1=1357647&r2=1357648&view=diff
==============================================================================
--- openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/BeanContext.java
(original)
+++ openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/BeanContext.java
Thu Jul  5 14:51:19 2012
@@ -439,6 +439,10 @@ public class BeanContext extends Deploym
 
     private void initDefaultLock() {
 
+        if(!BeanType.SINGLETON.equals(this.componentType)){
+            return;
+        }
+
         final ArrayList<Class> classes = new ArrayList<Class>();
 
         for (final Class local : businessRemotes) {



Mime
View raw message