geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r580226 - /geronimo/server/branches/2.0/modules/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/OpenEjbSystemGBean.java
Date Fri, 28 Sep 2007 05:41:31 GMT
Author: dblevins
Date: Thu Sep 27 22:41:25 2007
New Revision: 580226

URL: http://svn.apache.org/viewvc?rev=580226&view=rev
Log:
Temporary fix for ensuring that internally required jndi subcontexts are not cleaned out on
undeploy.

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=580226&r1=580225&r2=580226&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
Thu Sep 27 22:41:25 2007
@@ -29,6 +29,7 @@
 import javax.ejb.spi.HandleDelegate;
 import javax.management.ObjectName;
 import javax.naming.NamingException;
+import javax.naming.Context;
 import javax.persistence.EntityManagerFactory;
 import javax.resource.spi.ResourceAdapter;
 import javax.transaction.TransactionManager;
@@ -118,6 +119,11 @@
         boolean offline = true;
         configurationFactory = new ConfigurationFactory(offline);
         assembler = new Assembler();
+        Context rootContext = assembler.getContainerSystem().getJNDIContext();
+        // Temporary bug fix
+        rootContext.bind("openejb/ejb/.", "");
+        rootContext.bind("openejb/client/.", "");
+        rootContext.bind("openejb/Deployment/.", "");
 
         // install application server
         ApplicationServer applicationServer = new ServerFederation();



Mime
View raw message