ManagedJ2EEEjbJarModulepublic class ManagedJ2EEEjbJarModule extends ConfigMBeanBase Represents a Ejb Jar Module within an app. This is a part of a deployed
application. When a J2EE application is deployed, instances of this MBean
are registered in the MBeanServer.
There will be as many instances of this MBean as there are Ejb Modules (per
application).
ObjectName of this MBean is:
ias:type=J2EEEjbJarModule, AppName= , ModuleName= |
Fields Summary |
---|
private static final String[] | MAPLIST | private static final String[] | ATTRIBUTES | private static final String[] | OPERATIONS |
Constructors Summary |
---|
public ManagedJ2EEEjbJarModule()Default constructor sets MBean description tables
this.setDescriptions(MAPLIST, ATTRIBUTES, OPERATIONS);
| public ManagedJ2EEEjbJarModule(String instanceName, String applicationName, String moduleName)
this(instanceName, applicationName, moduleName, null);
| public ManagedJ2EEEjbJarModule(String instanceName, String applicationName, String moduleName, com.sun.enterprise.admin.AdminContext adminContext)
this(); //set description tables
setAdminContext(adminContext);
initialize(ObjectNames.kEjbModule, new String[]{instanceName, applicationName, moduleName});
|
Methods Summary |
---|
private java.lang.String[] | getBeansByType(int ejbType)
ConfigMBeanNamingInfo namingInfo = this.getConfigMBeanNamingInfo();
String [] locParams = namingInfo.getLocationParams();
String applicationName = locParams[1];
String moduleName = locParams[2];
try
{
J2eeApplication app = (J2eeApplication) this.getConfigBeanByXPath(ServerXPathHelper.getAppIdXpathExpression(applicationName));
String location = app.getLocation();
return ModulesXMLHelper.getEnterpriseBeansForEjbModule(location, moduleName, ejbType);
}
catch (Exception e)
{
sLogger.throwing(getClass().getName(), "getBeansByType", e);
throw new J2EEEjbJarModuleException(e.getMessage());
}
| public java.lang.String[] | getEnterpriseBeans()
return getBeansByType(ModulesXMLHelper.EJB_TYPE_ALL);
| public java.lang.String[] | getEntityEJBs()
return getBeansByType(ModulesXMLHelper.EJB_TYPE_ENTITY);
| public int | getModuleType()
return ( AdminConstants.kTypeEjbModule );
| public java.lang.String[] | getSessionEJBs()
return getBeansByType(ModulesXMLHelper.EJB_TYPE_SESSION);
|
|