Methods Summary |
---|
public void | onInitialization(com.sun.enterprise.server.ServerContext sc)Server is initializing subsystems and setting up the runtime environment.
Prepare for the beginning of active use of the public methods of this
subsystem. This method is called before any of the public methods of
this subsystem are utilized.
logger.log(Level.FINEST, "se_lifecycle_initializing");
/*ApplicationLoaderEventNotifier.getInstance().
addListener(ApplicationLoaderEventListenerImpl.getInstance());*/
|
public void | onReady(com.sun.enterprise.server.ServerContext sc)Server has complted loading the applications and is ready to serve requests.
Installer installer =
ServiceEngineObjectFactoryImpl.getInstance().
createInstaller();
if(installer.isJBIInstalled()) {
installer.setComponentName(DEFAULT_COMPONENT_NAME);
try {
boolean installedFlag = installer.isComponentInstalled();
logger.log(Level.FINE, "Is Java EE Service Engine installed " + installedFlag);
if(ServiceEngineUtil.isServiceEngineEnabled()) {
//Assumption here is if service engine is already installed,
// It will be resumed in its state by the JBI framework
if(!installedFlag) {
installer.install(null);
installer.start();
}
}else {
logger.log(Level.FINEST, "Java EE Service Engine is disabled");
if(installedFlag) {
// If service engine is disabled, stop the service engine
try {
installer.stop();
} catch(Exception e) {
}
}
}
} catch (Throwable e) {
e.printStackTrace();
}
}
|
public void | onShutdown()Server is shutting down applications
|
public void | onStartup(com.sun.enterprise.server.ServerContext sc)Server is starting up applications
logger.log(Level.FINEST, "se_lifecycle_starting");
|
public void | onTermination()Server is terminating the subsystems and the runtime environment.
Gracefully terminate the active use of the public methods of this
subsystem. This method should be the last one called on a given
instance of this subsystem.
|