tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r1004833 - /openejb/branches/openejb-3.1.x/container/openejb-core/src/main/java/org/apache/openejb/junit/ApplicationComposer.java
Date Tue, 05 Oct 2010 22:12:45 GMT
Author: dblevins
Date: Tue Oct  5 22:12:45 2010
New Revision: 1004833

URL: http://svn.apache.org/viewvc?rev=1004833&view=rev
Log:
Small tweaks to install logging and not do undeployment on shutdown (later to add an option
for this).

Modified:
    openejb/branches/openejb-3.1.x/container/openejb-core/src/main/java/org/apache/openejb/junit/ApplicationComposer.java

Modified: openejb/branches/openejb-3.1.x/container/openejb-core/src/main/java/org/apache/openejb/junit/ApplicationComposer.java
URL: http://svn.apache.org/viewvc/openejb/branches/openejb-3.1.x/container/openejb-core/src/main/java/org/apache/openejb/junit/ApplicationComposer.java?rev=1004833&r1=1004832&r2=1004833&view=diff
==============================================================================
--- openejb/branches/openejb-3.1.x/container/openejb-core/src/main/java/org/apache/openejb/junit/ApplicationComposer.java
(original)
+++ openejb/branches/openejb-3.1.x/container/openejb-core/src/main/java/org/apache/openejb/junit/ApplicationComposer.java
Tue Oct  5 22:12:45 2010
@@ -18,6 +18,7 @@ package org.apache.openejb.junit;
 
 import org.apache.openejb.DeploymentInfo;
 import org.apache.openejb.InjectionProcessor;
+import org.apache.openejb.OpenEJBException;
 import org.apache.openejb.assembler.classic.AppInfo;
 import org.apache.openejb.assembler.classic.Assembler;
 import org.apache.openejb.config.AppModule;
@@ -42,6 +43,9 @@ import org.apache.openejb.jee.oejb3.Open
 import org.apache.openejb.loader.SystemInstance;
 import org.apache.openejb.spi.ContainerSystem;
 import org.apache.openejb.util.Join;
+import org.apache.openejb.util.LogCategory;
+import org.apache.openejb.util.Logger;
+import org.apache.openejb.util.OptionsLog;
 import org.junit.runners.BlockJUnit4ClassRunner;
 import org.junit.runners.model.FrameworkMethod;
 import org.junit.runners.model.InitializationError;
@@ -223,7 +227,9 @@ public class ApplicationComposer extends
             if (SystemInstance.isInitialized()) SystemInstance.reset();
 
             SystemInstance.init(configuration);
-
+            SystemInstance.get().setProperty("openejb.embedded", "true");
+            Logger.configure();
+            OptionsLog.install();
             try {
                 ConfigurationFactory config = new ConfigurationFactory();
                 config.init(SystemInstance.get().getProperties());
@@ -255,7 +261,7 @@ public class ApplicationComposer extends
                     }
 
                 } finally {
-                    assembler.destroyApplication(appInfo.jarPath);
+//                    assembler.destroyApplication(appInfo.jarPath);
                 }
             } finally {
                 SystemInstance.reset();



Mime
View raw message