geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r831811 - in /geronimo/server/branches/2.2/plugins/openejb/geronimo-openejb/src/main/java/org/apache/geronimo/openejb: EjbModuleImpl.java GeronimoThreadContextListener.java
Date Mon, 02 Nov 2009 07:25:53 GMT
Author: djencks
Date: Mon Nov  2 07:25:53 2009
New Revision: 831811

URL: http://svn.apache.org/viewvc?rev=831811&view=rev
Log:
GERONIMO-4918 make EjbModuleImpl initialize all the ejbDeployment gbeans during its startup.
 This helps corba and ws tests but is not quite sufficient

Modified:
    geronimo/server/branches/2.2/plugins/openejb/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/EjbModuleImpl.java
    geronimo/server/branches/2.2/plugins/openejb/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/GeronimoThreadContextListener.java

Modified: geronimo/server/branches/2.2/plugins/openejb/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/EjbModuleImpl.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.2/plugins/openejb/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/EjbModuleImpl.java?rev=831811&r1=831810&r2=831811&view=diff
==============================================================================
--- geronimo/server/branches/2.2/plugins/openejb/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/EjbModuleImpl.java
(original)
+++ geronimo/server/branches/2.2/plugins/openejb/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/EjbModuleImpl.java
Mon Nov  2 07:25:53 2009
@@ -34,6 +34,8 @@
 import org.apache.geronimo.management.J2EEServer;
 import org.apache.openejb.NoSuchApplicationException;
 import org.apache.openejb.UndeployException;
+import org.apache.openejb.DeploymentInfo;
+import org.apache.openejb.core.CoreDeploymentInfo;
 import org.apache.openejb.assembler.classic.EjbJarInfo;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -165,6 +167,10 @@
 
     public void doStart() throws Exception {
         openEjbSystem.createEjbJar(ejbJarInfo, classLoader);
+        for (String deploymentId: ejbs.keySet()) {
+            DeploymentInfo deploymentInfo = openEjbSystem.getDeploymentInfo(deploymentId);
+            GeronimoThreadContextListener.get().getEjbDeployment((CoreDeploymentInfo) deploymentInfo);
+        }
     }
 
     public void doStop() {

Modified: geronimo/server/branches/2.2/plugins/openejb/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/GeronimoThreadContextListener.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.2/plugins/openejb/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/GeronimoThreadContextListener.java?rev=831811&r1=831810&r2=831811&view=diff
==============================================================================
--- geronimo/server/branches/2.2/plugins/openejb/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/GeronimoThreadContextListener.java
(original)
+++ geronimo/server/branches/2.2/plugins/openejb/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/GeronimoThreadContextListener.java
Mon Nov  2 07:25:53 2009
@@ -76,7 +76,7 @@
         this.ejbs.remove(id);
     }
 
-    private EjbDeployment getEjbDeployment(CoreDeploymentInfo deploymentInfo) {
+    EjbDeployment getEjbDeployment(CoreDeploymentInfo deploymentInfo) {
         Deployment deployment = ejbs.get(deploymentInfo.getDeploymentID());
 
         if (deployment == null) return null;



Mime
View raw message