You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by db...@apache.org on 2007/04/10 20:47:21 UTC

svn commit: r527245 - /incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/config/JndiEncInfoBuilder.java

Author: dblevins
Date: Tue Apr 10 11:47:20 2007
New Revision: 527245

URL: http://svn.apache.org/viewvc?view=rev&rev=527245
Log:
MappedName could be an "" empty string if set directly from the annotation without propertly checking.

Modified:
    incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/config/JndiEncInfoBuilder.java

Modified: incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/config/JndiEncInfoBuilder.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/config/JndiEncInfoBuilder.java?view=diff&rev=527245&r1=527244&r2=527245
==============================================================================
--- incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/config/JndiEncInfoBuilder.java (original)
+++ incubator/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/config/JndiEncInfoBuilder.java Tue Apr 10 11:47:20 2007
@@ -369,7 +369,7 @@
             info.location = buildLocationInfo(ejb);
 
             if (info.location == null) {
-                if (ejb.getMappedName() != null) {
+                if (ejb.getMappedName() != null && !ejb.getMappedName().equals("")) {
                     String mappedName = ejb.getMappedName();
                     if (!deploymentsInApplication.contains(mappedName)) {
                         info.externalReference = true;