Save This Page
Home » JBoss-5.1.0 » org » jboss » [javadoc | source]
org.jboss
public class: Main [javadoc | source]
java.lang.Object
   org.jboss.Main
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 log4j-debug.properties log4j-trace.properties by setting the system property log4j.configuration:

  ./run.sh -Dlog4j.configuration=log4j-debug.properties
TODO: Should jdk logging be the default
Nested Class Summary:
static class  Main.JarFilter   
Constructor:
 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.