geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r499376 - /geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/java/org/apache/geronimo/openejb/deployment/EjbModuleBuilderTest.java
Date Wed, 24 Jan 2007 12:09:09 GMT
Author: dblevins
Date: Wed Jan 24 04:09:08 2007
New Revision: 499376

URL: http://svn.apache.org/viewvc?view=rev&rev=499376
Log:
specify the container types for each container

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

Modified: geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/java/org/apache/geronimo/openejb/deployment/EjbModuleBuilderTest.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/java/org/apache/geronimo/openejb/deployment/EjbModuleBuilderTest.java?view=diff&rev=499376&r1=499375&r2=499376
==============================================================================
--- geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/java/org/apache/geronimo/openejb/deployment/EjbModuleBuilderTest.java
(original)
+++ geronimo/server/trunk/modules/geronimo-openejb-builder/src/test/java/org/apache/geronimo/openejb/deployment/EjbModuleBuilderTest.java
Wed Jan 24 04:09:08 2007
@@ -47,11 +47,11 @@
         TransactionManager transactionManager = new GeronimoTransactionManager();
         OpenEjbSystem openEjbSystem = new OpenEjbSystemGBean(transactionManager);
 
-        addEjbContainer(openEjbSystem, "Default Stateless Container");
-        addEjbContainer(openEjbSystem, "Default Stateful Container");
-        addEjbContainer(openEjbSystem, "Default BMP Container");
-        addEjbContainer(openEjbSystem, "Default CMP Container");
-        addEjbContainer(openEjbSystem, "Default MDB Container");
+        addEjbContainer(openEjbSystem, "Default Stateless Container", "STATELESS");
+        addEjbContainer(openEjbSystem, "Default Stateful Container", "STATEFUL");
+        addEjbContainer(openEjbSystem, "Default BMP Container", "BMP_ENTITY");
+        addEjbContainer(openEjbSystem, "Default CMP Container", "CMP_ENTITY");
+        addEjbContainer(openEjbSystem, "Default MDB Container", "MESSAGE");
 
         // load ejb-jar.xml
         String ejbJarXml = XmlUtil.loadEjbJarXml(null, moduleFile);
@@ -70,10 +70,11 @@
         openEjbSystem.createEjbJar(ejbJarInfo, classLoader);
     }
 
-    private void addEjbContainer(OpenEjbSystem openEjbSystem, String id) throws Exception
{
+    private void addEjbContainer(OpenEjbSystem openEjbSystem, String id, String type) throws
Exception {
         EjbContainer ejbContainer = new EjbContainer();
         ejbContainer.setOpenEjbSystem(openEjbSystem);
         ejbContainer.setId(id);
+        ejbContainer.setType(type);
         ejbContainer.doStart();
     }
 }



Mime
View raw message