geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From genspr...@apache.org
Subject svn commit: r1136334 - /geronimo/server/trunk/plugins/openejb/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbDeploymentBuilder.java
Date Thu, 16 Jun 2011 09:08:59 GMT
Author: genspring
Date: Thu Jun 16 09:08:59 2011
New Revision: 1136334

URL: http://svn.apache.org/viewvc?rev=1136334&view=rev
Log:
To always add localbean view for ManagedBean.

Modified:
    geronimo/server/trunk/plugins/openejb/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbDeploymentBuilder.java

Modified: geronimo/server/trunk/plugins/openejb/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbDeploymentBuilder.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/openejb/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbDeploymentBuilder.java?rev=1136334&r1=1136333&r2=1136334&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/openejb/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbDeploymentBuilder.java
(original)
+++ geronimo/server/trunk/plugins/openejb/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbDeploymentBuilder.java
Thu Jun 16 09:08:59 2011
@@ -70,6 +70,7 @@ import org.apache.openejb.core.ivm.namin
 import org.apache.openejb.jee.EjbJar;
 import org.apache.openejb.jee.EnterpriseBean;
 import org.apache.openejb.jee.EntityBean;
+import org.apache.openejb.jee.ManagedBean;
 import org.apache.openejb.jee.MessageDrivenBean;
 import org.apache.openejb.jee.MethodPermission;
 import org.apache.openejb.jee.RemoteBean;
@@ -556,7 +557,7 @@ public class EjbDeploymentBuilder {
         }
 
         try {
-            if (bean instanceof SessionBean && ((SessionBean)bean).getLocalBean()
!= null) {
+            if (bean instanceof SessionBean && ( ((SessionBean)bean).getLocalBean()
!= null) || bean instanceof ManagedBean ) {
                 String beanClass = bean.getEjbClass();
 
                 String name = "openejb/Deployment/" + format(id, beanClass, InterfaceType.BUSINESS_LOCALBEAN_HOME);
@@ -568,7 +569,7 @@ public class EjbDeploymentBuilder {
         } catch (NamingException e) {
             throw new RuntimeException("Unable to bind business remote deployment in jndi.",
e);
         }
-        if (count == 1) {
+        if (count == 1 || bean instanceof ManagedBean) {
             try {
                 bindJava(appName, moduleName, beanName, null, singleRef, jndiContext);
             } catch (NamingException e) {



Mime
View raw message