geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From genspr...@apache.org
Subject svn commit: r1133671 - /geronimo/server/trunk/plugins/openejb/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbDeploymentBuilder.java
Date Thu, 09 Jun 2011 06:13:48 GMT
Author: genspring
Date: Thu Jun  9 06:13:47 2011
New Revision: 1133671

URL: http://svn.apache.org/viewvc?rev=1133671&view=rev
Log:
OPENEJB-1572 The home ref does not get binded with home and localHome style jndi name.

Use correct interfacetype for home ref binding.

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=1133671&r1=1133670&r2=1133671&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  9 06:13:47 2011
@@ -504,7 +504,7 @@ public class EjbDeploymentBuilder {
                 String homeInterface = ((RemoteBean) bean).getHome();
                 if (homeInterface != null) {
 
-                    String name = "openejb/Deployment/" + format(id, homeInterface, InterfaceType.EJB_OBJECT);
+                    String name = "openejb/Deployment/" + format(id, homeInterface, InterfaceType.EJB_HOME);
                     Reference ref = new IntraVmJndiReference(name);
                     count ++;
                     singleRef = ref;
@@ -517,7 +517,7 @@ public class EjbDeploymentBuilder {
                 String localHomeInterface = ((RemoteBean) bean).getLocalHome();
                 if (localHomeInterface != null) {
 
-                    String name = "openejb/Deployment/" + format(id, localHomeInterface,
InterfaceType.EJB_LOCAL);
+                    String name = "openejb/Deployment/" + format(id, localHomeInterface,
InterfaceType.EJB_LOCAL_HOME);
                     Reference ref = new IntraVmJndiReference(name);
                     count++;
                     singleRef = ref;



Mime
View raw message