geronimo-scm mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1136359&view=rev
Log:
appName might have been empty string already.

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=1136359&r1=1136358&r2=1136359&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 10:17:09 2011
@@ -494,7 +494,7 @@ public class EjbDeploymentBuilder {
     public void bind(EnterpriseBean bean, String appName, String moduleName, String id, Map<JndiKey,
Map<String, Object>> jndiContext) {
 
 
-        appName = appName == null? "": appName + "/";
+        appName = (appName == null || appName.isEmpty())? "": appName + "/";
         moduleName = moduleName + "/";
         String beanName = bean.getEjbName();
         int count = 0;



Mime
View raw message