geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r906211 - /geronimo/server/trunk/plugins/j2ee/geronimo-j2ee/src/main/java/org/apache/geronimo/j2ee/annotation/Holder.java
Date Wed, 03 Feb 2010 20:01:20 GMT
Author: gawor
Date: Wed Feb  3 20:01:19 2010
New Revision: 906211

URL: http://svn.apache.org/viewvc?rev=906211&view=rev
Log:
fix jndi injections

Modified:
    geronimo/server/trunk/plugins/j2ee/geronimo-j2ee/src/main/java/org/apache/geronimo/j2ee/annotation/Holder.java

Modified: geronimo/server/trunk/plugins/j2ee/geronimo-j2ee/src/main/java/org/apache/geronimo/j2ee/annotation/Holder.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/j2ee/geronimo-j2ee/src/main/java/org/apache/geronimo/j2ee/annotation/Holder.java?rev=906211&r1=906210&r2=906211&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/j2ee/geronimo-j2ee/src/main/java/org/apache/geronimo/j2ee/annotation/Holder.java
(original)
+++ geronimo/server/trunk/plugins/j2ee/geronimo-j2ee/src/main/java/org/apache/geronimo/j2ee/annotation/Holder.java
Wed Feb  3 20:01:19 2010
@@ -188,8 +188,8 @@
             for (Injection injection : callbackHandlerinjections) {
                 try {
                     String jndiName = injection.getJndiName();
-                    //our componentContext is attached to jndi at "java:comp" so we remove
that when looking stuff up in it
-                    Object object = context.lookup("env/" + jndiName);
+                    //our componentContext is attached to jndi at "java:" so we remove that
when looking stuff up in it
+                    Object object = context.lookup("comp/env/" + jndiName);
                     if (object instanceof String) {
                         String string = (String) object;
                         // Pass it in raw so it could be potentially converted to



Mime
View raw message