openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r959776 - /openwebbeans/trunk/webbeans-openejb/src/main/java/org/apache/webbeans/ejb/EjbPlugin.java
Date Thu, 01 Jul 2010 20:40:27 GMT
Author: gerdogdu
Date: Thu Jul  1 20:40:27 2010
New Revision: 959776

URL: http://svn.apache.org/viewvc?rev=959776&view=rev
Log:
Update to correct test failing

Modified:
    openwebbeans/trunk/webbeans-openejb/src/main/java/org/apache/webbeans/ejb/EjbPlugin.java

Modified: openwebbeans/trunk/webbeans-openejb/src/main/java/org/apache/webbeans/ejb/EjbPlugin.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-openejb/src/main/java/org/apache/webbeans/ejb/EjbPlugin.java?rev=959776&r1=959775&r2=959776&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-openejb/src/main/java/org/apache/webbeans/ejb/EjbPlugin.java
(original)
+++ openwebbeans/trunk/webbeans-openejb/src/main/java/org/apache/webbeans/ejb/EjbPlugin.java
Thu Jul  1 20:40:27 2010
@@ -323,10 +323,11 @@ public class EjbPlugin extends AbstractO
 
     private boolean addBeanDeploymentInfos(DeploymentInfo[] deployments, SessionBeanType
type)
     {
+        boolean classLoaderEquality = false;
         for (DeploymentInfo deployment : deployments)
         {
             boolean inTest = Boolean.valueOf(SecurityUtil.doPrivilegedGetSystemProperty("EjbPlugin.test",
"false"));
-            boolean classLoaderEquality = deployment.getBeanClass().getClassLoader().equals(WebBeansFinder.
+            classLoaderEquality = deployment.getBeanClass().getClassLoader().equals(WebBeansFinder.
                     getSingletonClassLoader(PluginLoader.getInstance())); 
             
             //Yes, this EJB archive is deployed within this web application
@@ -355,13 +356,11 @@ public class EjbPlugin extends AbstractO
                         this.ejbInstances.put(beanName, ejb);
                         logger.info("Exported EJB " + deployment.getEjbName() + " with interface
" + entry.getValue().getInterface().getName());
                     }
-                }
-                
-                return true;
+                }                
             }
         }        
         
-        return false;
+        return classLoaderEquality;
     }
 
     public void isManagedBean(Class<?> clazz) throws WebBeansConfigurationException



Mime
View raw message