geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r528339 - /geronimo/server/trunk/modules/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbRefBuilder.java
Date Fri, 13 Apr 2007 02:59:42 GMT
Author: dain
Date: Thu Apr 12 19:59:41 2007
New Revision: 528339

URL: http://svn.apache.org/viewvc?view=rev&rev=528339
Log:
JndiEncInfoBuilder api changed

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

Modified: geronimo/server/trunk/modules/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbRefBuilder.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbRefBuilder.java?view=diff&rev=528339&r1=528338&r2=528339
==============================================================================
--- geronimo/server/trunk/modules/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbRefBuilder.java
(original)
+++ geronimo/server/trunk/modules/geronimo-openejb-builder/src/main/java/org/apache/geronimo/openejb/deployment/EjbRefBuilder.java
Thu Apr 12 19:59:41 2007
@@ -136,7 +136,12 @@
                 ejbJars = earData.getEjbJars();
             }
             JndiEncInfoBuilder jndiEncInfoBuilder = new JndiEncInfoBuilder(ejbJars);
-            JndiEncInfo jndiEncInfo = jndiEncInfoBuilder.build(consumer, "GeronimoEnc");
+            JndiEncInfo jndiEncInfo;
+            if (module.isStandAlone()) {
+                jndiEncInfo = jndiEncInfoBuilder.build(consumer, "GeronimoEnc", null);
+            } else {
+                jndiEncInfo = jndiEncInfoBuilder.build(consumer, "GeronimoEnc", module.getTargetPath());
+            }
             JndiEncBuilder jndiEncBuilder = new JndiEncBuilder(jndiEncInfo, module.getName());
             map = jndiEncBuilder.buildMap();
         } catch (OpenEJBException e) {



Mime
View raw message