geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xuhaih...@apache.org
Subject svn commit: r1147791 - /geronimo/server/trunk/plugins/openejb/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbRefBuilder.java
Date Mon, 18 Jul 2011 09:02:53 GMT
Author: xuhaihong
Date: Mon Jul 18 09:02:52 2011
New Revision: 1147791

URL: http://svn.apache.org/viewvc?rev=1147791&view=rev
Log:
Fix a mistaken in last commit, use full name to search the injection map

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=1147791&r1=1147790&r2=1147791&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
Mon Jul 18 09:02:52 2011
@@ -185,12 +185,12 @@ public class EjbRefBuilder extends Abstr
 
                 ReferenceType referenceType = ejbLocalRefNames.contains(name) ? ReferenceType.EJB_LOCAL
: ReferenceType.EJB;
 
-                List<InjectionTarget> injections = injectionsMap.get(name);
+                String fullName = "java:" + name;
+                List<InjectionTarget> injections = injectionsMap.get(fullName);
                 if(injections == null) {
                     injections = Collections.<InjectionTarget>emptyList();
                 }
 
-                String fullName = "java:" + name;
                 if (lookupJndiContextMap(module, fullName) != null) {
                     addInjections(name, referenceType, injections, NamingBuilder.INJECTION_KEY.get(sharedContext));
                     continue;



Mime
View raw message