Methods Summary |
---|
void | createLeafMBean(com.sun.enterprise.deployment.Descriptor descriptor)Create jsr77 mBeans for ejbs within this module
EjbDescriptor ejbDescriptor = null;
try {
ejbDescriptor = (EjbDescriptor) descriptor;
} catch (Exception e) {
throw new MBeanException(e);
}
Switch.getSwitch().getManagementObjectManager().createEJBMBean(ejbDescriptor,
this.configManager.getInstanceEnvironment().getName());
|
void | createLeafMBeans()Create jsr77 mBeans for ejbs within this module
java.util.Set ejbBundles = this.application.getEjbBundleDescriptors();
for(Iterator it=ejbBundles.iterator(); it.hasNext(); ) {
EjbBundleDescriptor bundleDesc = (EjbBundleDescriptor)it.next();
Switch.getSwitch().getManagementObjectManager().createEJBMBeans(bundleDesc,
this.configManager.getInstanceEnvironment().getName());
}
|
void | createRootMBean()Create jsr77 root mBean
EjbDeploymentDescriptorFile eddf = null;
java.util.Set ejbBundles = this.application.getEjbBundleDescriptors();
for(Iterator it=ejbBundles.iterator(); it.hasNext(); ) {
EjbBundleDescriptor bundleDesc = (EjbBundleDescriptor)it.next();
try {
Switch.getSwitch().getManagementObjectManager().createEJBModuleMBean(
bundleDesc,
this.configManager.getInstanceEnvironment().getName(),
this.configManager.getLocation(this.id));
} catch (Exception e) {
throw new MBeanException(e);
}
}
|
void | deleteLeafAndRootMBeans()Delete jsr77 mBeans for the module and its' components
deleteLeafMBeans();
deleteRootMBean();
|
void | deleteLeafMBean(com.sun.enterprise.deployment.Descriptor descriptor)Delete jsr77 mBeans for ejbs within this module
EjbDescriptor ejbDescriptor = null;
try {
ejbDescriptor = (EjbDescriptor) descriptor;
} catch (Exception e) {
throw new MBeanException(e);
}
Switch.getSwitch().getManagementObjectManager().deleteEJBMBean(ejbDescriptor,
this.configManager.getInstanceEnvironment().getName());
|
void | deleteLeafMBeans()Delete jsr77 mBeans for ejbs within this module
java.util.Set ejbBundles = this.application.getEjbBundleDescriptors();
for(Iterator it=ejbBundles.iterator(); it.hasNext(); ) {
EjbBundleDescriptor bundleDesc = (EjbBundleDescriptor)it.next();
Switch.getSwitch().getManagementObjectManager().deleteEJBMBeans(bundleDesc,
this.configManager.getInstanceEnvironment().getName());
}
|
void | deleteRootMBean()Delete jsr77 root mBean
java.util.Set ejbBundles = this.application.getEjbBundleDescriptors();
for(Iterator it=ejbBundles.iterator(); it.hasNext(); ) {
EjbBundleDescriptor bundleDesc = (EjbBundleDescriptor)it.next();
Switch.getSwitch().getManagementObjectManager().deleteEJBModuleMBean(bundleDesc,
this.configManager.getInstanceEnvironment().getName());
}
|
boolean | doLoad(boolean jsr77)Loads all the beans in this stand alone ejb module.
This routine creates the EJB and MDB container.
//Note: Application.isVirtual will be true for stand-alone module
notifyAppEvent(ApplicationEvent.BEFORE_APPLICATION_LOAD);
boolean pusLoaded = false;
if(application.isVirtual()) { // standalone ejb jar
// load persistence units for standalone ejb jars only
// because for embedded ejb-jars, AppliationLoader loads them.
if(!loadPersistenceUnits()) {
return false; // abort loading at this point.
} else {
pusLoaded = true;
}
}
boolean status = loadEjbs(jsr77);
if (status == true) {
notifyAppEvent(ApplicationEvent.AFTER_APPLICATION_LOAD);
loadWebserviceEndpoints(jsr77);
} else {
if(pusLoaded) { // unload iff we have loaded.
unloadPersistenceUnits();
}
}
return status;
|
void | setState(int state)Set state for the root mBean
java.util.Set ejbBundles = this.application.getEjbBundleDescriptors();
for(Iterator it=ejbBundles.iterator(); it.hasNext(); ) {
EjbBundleDescriptor bundleDesc = (EjbBundleDescriptor)it.next();
Switch.getSwitch().getManagementObjectManager().setEJBModuleState(state, bundleDesc,
this.configManager.getInstanceEnvironment().getName());
}
|
boolean | unload(boolean jsr77)Unloads the beans in this stand alone ejb module.
// undeploy the ejb modules
//Note: Application.isVirtual will be true for stand-alone module
notifyAppEvent(ApplicationEvent.BEFORE_APPLICATION_UNLOAD);
boolean result = unloadEjbs(jsr77);
unloadWebserviceEndpoints(jsr77);
if(application.isVirtual()) { // standalone jar
// unload persistence units for standalone ejb jars only
// because for embedded ejb jar, AppliationLoader unloads them.
result &= unloadPersistenceUnits();
}
configManager.unregisterDescriptor(id);
notifyAppEvent(ApplicationEvent.AFTER_APPLICATION_UNLOAD);
// helps garbage collector
done();
return result;
|