Public Member Functions | |
Service | getService (String name) throws ServiceException |
Service | getEjbService () throws ServiceException |
Service | getEarService () throws ServiceException |
Service | getRarService () throws ServiceException |
Service | getWebContainerService () throws ServiceException |
Service | getWebServicesService () throws ServiceException |
Service | getMailService () throws ServiceException |
Service | getDataBaseService () throws ServiceException |
Service | getTransactionService () throws ServiceException |
Service | getJmsService () throws ServiceException |
Service | getSecurityService () throws ServiceException |
Service | getJmxService () throws ServiceException |
Service | getRegistryService () throws ServiceException |
Service | getResourceService () throws ServiceException |
void | startRegistry () throws ServiceException |
void | startJmx () throws ServiceException |
void | startServices () throws ServiceException |
Service[] | getServices () throws ServiceException |
String[] | getServiceNames () |
void | stopServices () throws ServiceException |
Static Public Member Functions | |
ServiceManager | getInstance () throws Exception |
Protected Member Functions | |
void | readServices () throws ServiceException |
Service | createServiceFrom (String serviceName) throws ServiceException |
Context | createServiceContextFor (String serviceName) throws NamingException |
Static Package Attributes | |
final String | SERVICES_PROP_NAME = JProp.JONASPREFIX + ".services" |
final String | PREFIX_SERVICE_PROP_NAME = JProp.JONASPREFIX + ".service" |
The services are defined in the jonas.properties files
Definition at line 65 of file ServiceManager.java.
|
Creates and returns the context for the configuration of the service which have the given name. (Uses the 'jonas.service.<servicename>.XXXX' properties for that)
Definition at line 452 of file ServiceManager.java. References org.objectweb.jonas.common.JProp.getEnv(), org.objectweb.jonas.common.JProp.getValue(), and org.objectweb.jonas.naming.CompNamingContext.rebind(). |
Here is the call graph for this function:
|
Creates and returns the service which have the given name. (Uses the 'jonas.service.<servicename>.class' property for that)
Definition at line 407 of file ServiceManager.java. References org.objectweb.jonas.common.JProp.getValue(), and org.objectweb.jonas.service.Service.setName(). |
Here is the call graph for this function:
|
Return the DataBase service (service's name: 'dbm')
Definition at line 208 of file ServiceManager.java. Referenced by org.objectweb.jonas.container.EJB.getAllDataSourceName(). |
|
Return the Ear service (service's name: 'ear')
Definition at line 163 of file ServiceManager.java. Referenced by org.objectweb.jonas.server.J2EEServerMBean.deployFile(), and org.objectweb.jonas_lib.deployment.work.EarCleanTask.isDeployLogEntry(). |
|
Return the EJB service (service's name: 'ejb')
Definition at line 154 of file ServiceManager.java. Referenced by org.objectweb.jonas.server.J2EEServerMBean.deployFile(), org.objectweb.jonas.ear.EarServiceImpl.doInit(), org.objectweb.jonas_lib.deployment.work.JarCleanTask.isDeployLogEntry(), and org.objectweb.jonas.server.Server.start(). |
|
Get the unique instance. Create it at first call.
Definition at line 125 of file ServiceManager.java. Referenced by org.objectweb.jonas.server.J2EEServerMBean.deployFile(), org.objectweb.jonas.web.AbsJWebContainerServiceImpl.doInit(), org.objectweb.jonas.ear.EarServiceImpl.doInit(), org.objectweb.jonas.container.EJBServiceImpl.doInit(), org.objectweb.jonas.web.jetty50.JettyJWebContainerServiceImpl.doStart(), org.objectweb.jonas.web.jetty50.JettyJWebContainerServiceImpl.doStop(), org.objectweb.jonas.adm.Adm.getTopicLevel(), org.objectweb.jonas.adm.Adm.getTopics(), org.objectweb.jonas_lib.deployment.work.JarCleanTask.isDeployLogEntry(), org.objectweb.jonas_lib.deployment.work.EarCleanTask.isDeployLogEntry(), org.objectweb.jonas.adm.Adm.setTopicLevel(), and org.objectweb.jonas.server.Server.start(). |
|
Return the JMS service (service's name: 'jms')
Definition at line 226 of file ServiceManager.java. Referenced by org.objectweb.jonas.container.EJBServiceImpl.doInit(). |
|
Return the JMX service (service's name: 'jmx')
Definition at line 244 of file ServiceManager.java. Referenced by org.objectweb.jonas.web.AbsJWebContainerServiceImpl.doInit(), org.objectweb.jonas.ear.EarServiceImpl.doInit(), org.objectweb.jonas.container.EJBServiceImpl.doInit(), org.objectweb.jonas.web.jetty50.JettyJWebContainerServiceImpl.doStart(), org.objectweb.jonas.web.jetty50.JettyJWebContainerServiceImpl.doStop(), and org.objectweb.jonas.security.realm.factory.JResource.JResource(). |
|
Return the mail service (service's name: 'mail').
Definition at line 199 of file ServiceManager.java. Referenced by org.objectweb.jonas.container.EJB.getAllMailFactoryMName(), and org.objectweb.jonas.container.EJB.getAllMailFactorySName(). |
|
Return the Rar service (service's name: 'resource')
Definition at line 172 of file ServiceManager.java. |
|
Return the Registry service (service's name: 'registry')
Definition at line 253 of file ServiceManager.java. |
|
Return the Resource service (service's name: 'resource')
Definition at line 262 of file ServiceManager.java. Referenced by org.objectweb.jonas.server.J2EEServerMBean.deployFile(), and org.objectweb.jonas.ear.EarServiceImpl.doInit(). |
|
Return the Security service (service's name: 'security')
Definition at line 235 of file ServiceManager.java. Referenced by org.objectweb.jonas.container.EJBServiceImpl.doInit(), and org.objectweb.jonas.security.realm.factory.JResource.JResource(). |
|
Get the service which have the given name
Definition at line 138 of file ServiceManager.java. |
|
return the list of services + registry if needed.
Definition at line 338 of file ServiceManager.java. References org.objectweb.jonas.common.JProp.getValueAsArray(). |
Here is the call graph for this function:
|
Returns the list of the managed services
Definition at line 326 of file ServiceManager.java. |
|
Return the Transaction service (service's name: 'jtm')
Definition at line 217 of file ServiceManager.java. Referenced by org.objectweb.jonas.dbm.ConnectionManager.ConnectionManager(), org.objectweb.jonas.resource.Rar.createFactory(), org.objectweb.jonas.resource.ResourceServiceImpl.doInit(), org.objectweb.jonas.container.EJBServiceImpl.doInit(), org.objectweb.jonas.dbm.Pool.Pool(), org.objectweb.jonas.resource.Rar.Rar(), and org.objectweb.jonas.server.Server.start(). |
|
Return the web service (service's name: 'web').
Definition at line 181 of file ServiceManager.java. Referenced by org.objectweb.jonas.server.J2EEServerMBean.deployFile(), and org.objectweb.jonas.ear.EarServiceImpl.doInit(). |
|
Return the WebServices service (service's name: 'ws').
Definition at line 190 of file ServiceManager.java. Referenced by org.objectweb.jonas.web.AbsJWebContainerServiceImpl.doInit(), and org.objectweb.jonas.ear.EarServiceImpl.doInit(). |
|
For each service, create it and its associated configuration context. (creates services, contextsByService and servicesByName)
Definition at line 371 of file ServiceManager.java. |
|
Start the jmx service
Definition at line 286 of file ServiceManager.java. References org.objectweb.jonas.service.Service.init(), and org.objectweb.jonas.service.Service.start(). Referenced by org.objectweb.jonas.server.Server.start(). |
Here is the call graph for this function:
|
Start the mandatory "registry" service
Definition at line 270 of file ServiceManager.java. References org.objectweb.jonas.service.Service.init(), and org.objectweb.jonas.service.Service.start(). Referenced by org.objectweb.jonas.server.Server.start(). |
Here is the call graph for this function:
|
Starts the managed services.
Definition at line 302 of file ServiceManager.java. References org.objectweb.jonas.service.Service.getName(), org.objectweb.jonas.service.Service.init(), and org.objectweb.jonas.service.Service.start(). Referenced by org.objectweb.jonas.server.Server.start(). |
Here is the call graph for this function:
|
Management Method: Stop all services. The services are stopped in the reverse order of their starting. (Continue the processing of stopping for the others services, even if there is a problem for one service.)
Definition at line 487 of file ServiceManager.java. References org.objectweb.jonas.service.Service.getName(), org.objectweb.jonas.service.Service.isStarted(), and org.objectweb.jonas.service.Service.stop(). |
Here is the call graph for this function:
|
A JOnAS service Definition at line 75 of file ServiceManager.java. |
|
Services of JOnAS Definition at line 70 of file ServiceManager.java. |