User: chirino
Date: 02/01/25 09:31:29
Modified: src/main/org/jboss Main.java
Log:
Added a systemExit() method so that Alexandria (an NT service java wrapper) can
shutdown a jboss correctly.
Revision Changes Path
1.63 +11 -2 jboss/src/main/org/jboss/Main.java
Index: Main.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/Main.java,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -r1.62 -r1.63
--- Main.java 2002/01/20 15:15:47 1.62
+++ Main.java 2002/01/25 17:31:27 1.63
@@ -28,7 +28,7 @@
*
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Jason Dillon</a>
- * @version $Revision: 1.62 $
+ * @version $Revision: 1.63 $
*/
public class Main
implements Runnable
@@ -220,4 +220,13 @@
ThreadGroup threads = new ThreadGroup("jboss");
new Thread(threads, new Main(args), "jboss-main").start();
}
-}
\ No newline at end of file
+
+ /**
+ * This method is here so that if JBoss is running under
+ * Alexandria (An NT Service Installer), Alexandria can shutdown
+ * the system down correctly.
+ */
+ public static void systemExit(String argv[]) {
+ System.exit(0);
+ }
+}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development