org.objectweb.jonas.server
Class Server

java.lang.Object
  extended byorg.objectweb.jonas.server.Server

public class Server
extends java.lang.Object

This class implements an JOnAS Server.

Author:
Philippe Coq, Philippe Durieux 00/06/15: Jeff Mesnil 01/06/15: Regis Le Brettevillois - Libelis / JOnAS team - evidian Service as org.objectweb.jonas.service.Service 02/04/25: Sebastien Chassande-Barrioz sebastien.chassande@inrialpes.fr Monolog for traces Adriana Danes 03/01/20: -Highlight configuration properties 03/03/..: -Force jmx service startup -Create and register the JonAS configuration MBean. This MBean manages JOnAS persistent re-configuration (see ReconfigManager class)

Method Summary
 int getActiveGroupCount()
          get the estimated number of active groups in the JOnAS server's initial thread group
protected  int getActiveThreadsCount()
          get the number of active threads in the JOnAS server's initial thread group
static Server getInstance()
          Get the unique instance.
 J2EEServer getJ2EEServer()
          Get J2EEServer.
 java.lang.String initCarol(JProp props)
          initialize interception and carol
 void kill()
          Stop the server and stop the JVM (MBean method)
static void main(java.lang.String[] args)
          Server main routine.
 void start()
          Start the server
 void stop()
          Stop the server without stopping the JVM
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static Server getInstance()
                          throws java.lang.Exception
Get the unique instance. Create it at first call.

Throws:
java.lang.Exception

start

public void start()
           throws java.lang.Exception
Start the server

Throws:
java.lang.Exception

getActiveThreadsCount

protected int getActiveThreadsCount()
get the number of active threads in the JOnAS server's initial thread group


getActiveGroupCount

public int getActiveGroupCount()
get the estimated number of active groups in the JOnAS server's initial thread group


getJ2EEServer

public J2EEServer getJ2EEServer()
Get J2EEServer.


initCarol

public java.lang.String initCarol(JProp props)
                           throws java.lang.Exception
initialize interception and carol

Throws:
java.lang.Exception

stop

public void stop()
          throws java.lang.Exception
Stop the server without stopping the JVM

Throws:
java.lang.Exception

kill

public void kill()
          throws java.lang.Exception
Stop the server and stop the JVM (MBean method)

Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
Server main routine. No args.