protected void addSystemApplications(Object clusterOrServer) throws ConfigException
{
final ConfigContext configContext = getConfigContext();
final Domain domain = ConfigAPIHelper.getDomainConfigBean(
configContext);
final Applications applications = domain.getApplications();
ConnectorModule[] connectors = applications.getConnectorModule();
for (int i = 0; i < connectors.length; i++) {
if (isSystemApp(connectors[i].getObjectType())) {
addApplicationReference(clusterOrServer, connectors[i].isEnabled(),
connectors[i].getName());
}
}
EjbModule[] ejbs = applications.getEjbModule();
for (int i = 0; i < ejbs.length; i++) {
if (isSystemApp(ejbs[i].getObjectType())) {
addApplicationReference(clusterOrServer, ejbs[i].isEnabled(),
ejbs[i].getName());
}
}
J2eeApplication[] apps = applications.getJ2eeApplication();
for (int i = 0; i < apps.length; i++) {
if (isSystemApp(apps[i].getObjectType())) {
addApplicationReference(clusterOrServer, apps[i].isEnabled(),
apps[i].getName());
}
}
WebModule[] webs = applications.getWebModule();
for (int i = 0; i < webs.length; i++) {
if (isSystemApp(webs[i].getObjectType())) {
addApplicationReference(clusterOrServer, webs[i].isEnabled(),
webs[i].getName());
}
}
Mbean[] mbeans = applications.getMbean();
for (int i = 0; i < mbeans.length; i++) {
if (isSystemApp(mbeans[i].getObjectType())) {
addApplicationReference(clusterOrServer, mbeans[i].isEnabled(),
mbeans[i].getName());
}
}
//There doesnt seem to be a way to add system lifecycle module.
//Adding this hack temperorily until this is disussed and
//decided.
/* LifecycleModule[] lcs = applications.getLifecycleModule();
for (LifecycleModule lcm : lcs) {
if (lcm.getName().equals("JBIFramework")) {
addApplicationReference(clusterOrServer, lcm.isEnabled(),
lcm.getName());
}
} */
// Attempting to add a ref for all LCMs
LifecycleModule[] lcs = applications.getLifecycleModule();
for (LifecycleModule lcm : lcs) {
if (isSystemApp(lcm.getObjectType())) {
addApplicationReference(clusterOrServer, lcm.isEnabled(),
lcm.getName());
}