Save This Page
Home » JBoss-5.1.0 » org » jboss » [javadoc | source]
public class: Main [javadoc | source]
Provides a command line interface to start the JBoss server.

To enable debug or trace messages durring boot change the Log4j configuration to use either by setting the system property log4j.configuration:

TODO: Should jdk logging be the default
Nested Class Summary:
static class  Main.JarFilter   
 public Main() 
Method from org.jboss.Main Summary:
boot,   getServer,   main,   shutdown,   systemExit
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.Main Detail:
 public  void boot(String[] args) throws Exception 
    Boot up JBoss.
 public Server getServer() 
    Access the booted server.
 public static  void main(String[] args) throws Exception 
    This is where the magic begins.

    Starts up inside of a "jboss" thread group to allow better identification of JBoss threads.

 public  void shutdown() 
    Shutdown the booted Server instance.
 public static  void systemExit(String[] argv) 
    This method is here so that if JBoss is running under Alexandria (An NT Service Installer), Alexandria can shutdown the system down correctly.