geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jb...@apache.org
Subject svn commit: r583334 - /geronimo/server/branches/2.0/modules/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/OpenEjbSystemGBean.java
Date Wed, 10 Oct 2007 00:39:54 GMT
Author: jbohn
Date: Tue Oct  9 17:39:54 2007
New Revision: 583334

URL: http://svn.apache.org/viewvc?rev=583334&view=rev
Log:
GERONIMO-3525 Add linkRef to map old MEJBGBean/MEJB jndi name to new ejb/mgmt/MEJB

Modified:
    geronimo/server/branches/2.0/modules/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/OpenEjbSystemGBean.java

Modified: geronimo/server/branches/2.0/modules/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/OpenEjbSystemGBean.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.0/modules/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/OpenEjbSystemGBean.java?rev=583334&r1=583333&r2=583334&view=diff
==============================================================================
--- geronimo/server/branches/2.0/modules/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/OpenEjbSystemGBean.java
(original)
+++ geronimo/server/branches/2.0/modules/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/OpenEjbSystemGBean.java
Tue Oct  9 17:39:54 2007
@@ -30,6 +30,7 @@
 import javax.management.ObjectName;
 import javax.naming.NamingException;
 import javax.naming.Context;
+import javax.naming.LinkRef;
 import javax.naming.NameAlreadyBoundException;
 import javax.persistence.EntityManagerFactory;
 import javax.resource.spi.ResourceAdapter;
@@ -127,6 +128,10 @@
             rootContext.bind("openejb/ejb/.", "");
             rootContext.bind("openejb/client/.", "");
             rootContext.bind("openejb/Deployment/.", "");
+            // temporary hack to map old MEJBGBean jndi name (specified in o.a.openejb.config.GeronimoMappedName
+            // and shipped in openejb-3.0-beta-1) to new mejb jndi name.
+            LinkRef linkRef = new LinkRef("openejb/Deployment/mejb/ejb/mgmt/MEJB/javax.management.j2ee.Management");
+            rootContext.bind("openejb/Deployment/MEJBGBean/MEJB/javax.management.j2ee.Management",
linkRef);
         } catch (NameAlreadyBoundException workaroundAlreadyApplied) {
         }
 



Mime
View raw message