geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r982873 - /geronimo/server/trunk/plugins/openejb/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbRefBuilder.java
Date Fri, 06 Aug 2010 04:48:03 GMT
Author: djencks
Date: Fri Aug  6 04:48:03 2010
New Revision: 982873

URL: http://svn.apache.org/viewvc?rev=982873&view=rev
Log:
try to provide some helpful logging rather than failing if spec dd doesn't have the expected
ejb-ref

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

Modified: geronimo/server/trunk/plugins/openejb/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbRefBuilder.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/openejb/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbRefBuilder.java?rev=982873&r1=982872&r2=982873&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/openejb/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbRefBuilder.java
(original)
+++ geronimo/server/trunk/plugins/openejb/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbRefBuilder.java
Fri Aug  6 04:48:03 2010
@@ -169,7 +169,12 @@ public class EjbRefBuilder extends Abstr
                 }
                 name = "java:" + name;
                 if (value instanceof Serializable) {
-                    put(name, value, module.getJndiContext(), injectionsMap.get(name), sharedContext);
+                    List<InjectionTarget> injections = injectionsMap.get(name);
+                    if (injections == null) {
+                        log.warn("No entry in ejb-jar.xml for name:\n " + name + "\n Known
names:\n " + injectionsMap.keySet());
+                        injections = Collections.emptyList();
+                    }
+                    put(name, value, module.getJndiContext(), injections, sharedContext);
                 }
             }
         }



Mime
View raw message