[jboss-cvs] JBossAS SVN: r86521 - projects/ejb3/trunk/endpoint-deployer/src/test/java/org/jboss/ejb3/endpoint/deployers/test/simple/unit.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Mar 31 06:55:23 EDT 2009


Author: jaikiran
Date: 2009-03-31 06:55:23 -0400 (Tue, 31 Mar 2009)
New Revision: 86521

Modified:
   projects/ejb3/trunk/endpoint-deployer/src/test/java/org/jboss/ejb3/endpoint/deployers/test/simple/unit/DeployEndpointTestCase.java
Log:
EJBTHREE-1799 Set a couple of properties to prevent the JVM from halting when the bootstrap shuts down

Modified: projects/ejb3/trunk/endpoint-deployer/src/test/java/org/jboss/ejb3/endpoint/deployers/test/simple/unit/DeployEndpointTestCase.java
===================================================================
--- projects/ejb3/trunk/endpoint-deployer/src/test/java/org/jboss/ejb3/endpoint/deployers/test/simple/unit/DeployEndpointTestCase.java	2009-03-31 10:31:01 UTC (rev 86520)
+++ projects/ejb3/trunk/endpoint-deployer/src/test/java/org/jboss/ejb3/endpoint/deployers/test/simple/unit/DeployEndpointTestCase.java	2009-03-31 10:55:23 UTC (rev 86521)
@@ -81,10 +81,15 @@
       Properties props = new Properties();
       props.put(ServerConfig.HOME_DIR, dir);
       props.put(ServerConfig.SERVER_CONFIG_URL, findDir("src/test/resources/conf"));
+      // we should not be the one to stop/halt the JVM  
+      props.put(ServerConfig.EXIT_ON_SHUTDOWN, "false");
+      // workaround for JBBOOT-20
+      System.setProperty("jboss.shutdown.forceHalt", "false");
+
       server.init(props);
       
       server.start();
-      
+
       mainDeployer = (MainDeployer) server.getKernel().getController().getContext("MainDeployer", ControllerState.INSTALLED).getTarget();
       
       // TODO: another hack that simulates profile service going through deploy dir




More information about the jboss-cvs-commits mailing list