org.objectweb.jonas.server.Server Class Reference

Collaboration diagram for org.objectweb.jonas.server.Server:

Collaboration graph
[legend]
List of all members.

Public Member Functions

J2EEServer getJ2EEServer ()
String initCarol (JProp props) throws Exception
void kill () throws Exception
void start () throws Exception
void stop () throws Exception

Static Public Member Functions

Server getInstance () throws Exception
void main (String[] args) throws Exception

Detailed Description

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)

Definition at line 85 of file Server.java.


Member Function Documentation

Server org.objectweb.jonas.server.Server.getInstance  )  throws Exception [static]
 

Get the unique instance. Create it at first call.

Returns:
unique instance.
Exceptions:
Exception if the Server can not be instanciate

Definition at line 158 of file Server.java.

Referenced by org.objectweb.jonas.server.J2EEServer.J2EEServer(), org.objectweb.jonas.server.Server.main(), and org.objectweb.jonas.server.J2EEServer.setActivated().

J2EEServer org.objectweb.jonas.server.Server.getJ2EEServer  ) 
 

Gets J2EEServer.

Returns:
J2EEServer

Definition at line 285 of file Server.java.

String org.objectweb.jonas.server.Server.initCarol JProp  props  )  throws Exception
 

Initialize interception and carol

Parameters:
props the JOnAS properties
Returns:
list of protocols
Exceptions:
Exception if carol init failed

Definition at line 295 of file Server.java.

References org.objectweb.jonas.common.JProp.getValue().

Here is the call graph for this function:

void org.objectweb.jonas.server.Server.kill  )  throws Exception
 

Stop the server and stop the JVM (MBean method)

Exceptions:
Exception if the server can't be destroyed

Definition at line 386 of file Server.java.

References org.objectweb.jonas.adm.Adm.killServer().

Here is the call graph for this function:

void org.objectweb.jonas.server.Server.main String[]  args  )  throws Exception [static]
 

Server main routine. No args.

Parameters:
args the arguments of the server
Exceptions:
Exception can not start server

Definition at line 170 of file Server.java.

References org.objectweb.jonas.server.Server.getInstance(), org.objectweb.jonas.server.Server.start(), and org.objectweb.jonas.server.Server.stop().

Here is the call graph for this function:

void org.objectweb.jonas.server.Server.start  )  throws Exception
 

Start the server

Exceptions:
Exception if server can't be started

Definition at line 396 of file Server.java.

References org.objectweb.jonas.server.J2EEServer.addJavaVM(), org.objectweb.jonas.management.j2eemanagement.J2EEDomain.addServer(), org.objectweb.jonas.common.JProp.getConfigFileEnv(), org.objectweb.jonas.jtm.TransactionService.getCurrent(), org.objectweb.jonas.service.ServiceManager.getEjbService(), org.objectweb.jonas.naming.NamingManager.getInitialContext(), org.objectweb.jonas.service.ServiceManager.getInstance(), org.objectweb.jonas.jmx.JmxService.getJmxServer(), org.objectweb.jonas.service.ServiceManager.getTransactionService(), org.objectweb.jonas.common.JProp.getValue(), org.objectweb.jonas.adm.Adm.serverReady(), org.objectweb.jonas.service.ServiceManager.startJmx(), org.objectweb.jonas.service.ServiceManager.startRegistry(), and org.objectweb.jonas.service.ServiceManager.startServices().

Referenced by org.objectweb.jonas.server.Server.main().

Here is the call graph for this function:

void org.objectweb.jonas.server.Server.stop  )  throws Exception
 

Stop the server without stopping the JVM

Exceptions:
Exception if the server can't be stopped

Definition at line 591 of file Server.java.

References org.objectweb.jonas.adm.Adm.stopServer().

Referenced by org.objectweb.jonas.server.Server.main(), org.objectweb.jonas.server.J2EEServer.setActivated(), and org.objectweb.jonas.server.J2EEServer.stop().

Here is the call graph for this function:


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:08:06 2005 for JOnAS by  doxygen 1.3.9.1