*/
public void onReady(ServerContext sc) throws ServerLifecycleException {
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) {