[jboss-cvs] JBossAS SVN: r88840 - branches/Branch_5_x_BootstrapLegacyRemoval/system-jmx/src/main/org/jboss/system/server/jmx.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed May 13 18:24:01 EDT 2009
Author: ALRubinger
Date: 2009-05-13 18:24:01 -0400 (Wed, 13 May 2009)
New Revision: 88840
Modified:
branches/Branch_5_x_BootstrapLegacyRemoval/system-jmx/src/main/org/jboss/system/server/jmx/JMXKernel.java
Log:
[JBAS-6916][JBAS-6856] Manually request Runtime.exit() in JMXKernel, as this has been removed from bootstrap
Modified: branches/Branch_5_x_BootstrapLegacyRemoval/system-jmx/src/main/org/jboss/system/server/jmx/JMXKernel.java
===================================================================
--- branches/Branch_5_x_BootstrapLegacyRemoval/system-jmx/src/main/org/jboss/system/server/jmx/JMXKernel.java 2009-05-13 22:03:05 UTC (rev 88839)
+++ branches/Branch_5_x_BootstrapLegacyRemoval/system-jmx/src/main/org/jboss/system/server/jmx/JMXKernel.java 2009-05-13 22:24:01 UTC (rev 88840)
@@ -48,7 +48,6 @@
import org.jboss.bootstrap.spi.config.ConfigurationInitializer;
import org.jboss.bootstrap.spi.config.ConfigurationValidator;
import org.jboss.bootstrap.spi.config.InvalidConfigurationException;
-import org.jboss.bootstrap.spi.config.ServerConfig;
import org.jboss.bootstrap.spi.lifecycle.LifecycleEventException;
import org.jboss.bootstrap.spi.lifecycle.LifecycleEventHandler;
import org.jboss.bootstrap.spi.lifecycle.LifecycleState;
@@ -521,6 +520,19 @@
{
throw new RuntimeException("Error in shutdown of server: " + serverImpl,t);
}
+
+ // JBAS-6916:
+ //TODO This must be removed, VM exit is not a feature of server shutdown.
+ // Now exit the Runtime, because AS has non-daemon Threads still
+ // chugging away.
+ new Thread()
+ {
+ public void run()
+ {
+ log.info("Server exit called, exiting the JVM now!");
+ Runtime.getRuntime().exit(1);
+ }
+ }.start();
}
/**
More information about the jboss-cvs-commits
mailing list