Logger logger = LogDomains.getLogger();
// application server domain
String domain = (String) rms.getProperty(Constants.DOMAIN_NAME_PROP);
ConnectionRegistry registry = ConnectionRegistry.getInstance();
MBeanServerConnection connection =
registry.getConnection(Constants.ADMIN_SERVER_NAME, domain);
RelationFactory rf = new RelationFactory(rm.getContext());
ObjectName[] instances =
(ObjectName[])connection.invoke(
new ObjectName("com.sun.appserv:type=cluster,name="
+ ON.getKeyProperty("name") + ",category=config"),
"listServerInstances", null, null);
for (int i = 0; i<instances.length; i++) {
logger.finest("Adding cluster-instance relation for instance "
+ instances[i]);
String instanceName = instances[i].getKeyProperty("name");
try {
MBeanServerConnection con =
registry.getConnection(instanceName, domain);
} catch (Exception ex) {
continue;
}
String dest = "com.sun.cmm.as:type=CMM_J2eeServer,domain=" +
ON.getKeyProperty("domain")