User: user57 Date: 02/02/05 17:58:42 Modified: src/main/org/jboss Main.java Log: o changed a few info's to debugs o added exitOnShutdown flag to Server, which when set to true will call System.exit and when false will only invoke the shutdown hook. o exposed exit() to compliment the halt() exposure o added exit(int) and halt(int) to expose a bit more control to the admin console. o By default exitOnShutdown will be false, but Main will always set it to true after creation of the Server object, since it is the controlling entity (Server is embeded inside of it). Revision Changes Path 1.64 +2 -1 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.63 retrieving revision 1.64 diff -u -r1.63 -r1.64 --- Main.java 2002/01/25 17:31:27 1.63 +++ Main.java 2002/02/06 01:58:42 1.64 @@ -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.63 $ + * @version $Revision: 1.64 $ */ public class Main implements Runnable @@ -206,6 +206,7 @@ // Create & start the server Server server = new Server(config); + server.setExitOnShutdown(true); } /**
_______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development