try {
super.setAttribute(attr);
String attrName = attr.getName();
AttributeList otherAttrs = new AttributeList();
sLogger.log(Level.FINE, "modulemonitoringlevelsmbean.attribute_name", attrName);
if(attrName.equals(CONNECTOR_SERVICE_ATTR_NAME)) {
otherAttrs.add(new Attribute(JMS_SERVICE_ATTR_NAME, attr.getValue()));
otherAttrs.add(new Attribute(CONNECTOR_CONNPOOL_ATTR_NAME, attr.getValue()));
}
else if(attrName.equals(JMS_SERVICE_ATTR_NAME))
{
otherAttrs.add(new Attribute(CONNECTOR_CONNPOOL_ATTR_NAME, attr.getValue()));
otherAttrs.add(new Attribute(CONNECTOR_SERVICE_ATTR_NAME, attr.getValue()));
}
else if(attrName.equals(CONNECTOR_CONNPOOL_ATTR_NAME))
{
otherAttrs.add(new Attribute(CONNECTOR_SERVICE_ATTR_NAME, attr.getValue()));
otherAttrs.add(new Attribute(JMS_SERVICE_ATTR_NAME, attr.getValue()));
}
super.setAttributes(otherAttrs);
} catch(AFRuntimeException afe) {
throw afe;
} catch(Exception e) {
sLogger.log(Level.WARNING, "modulemonitoringlevelsmbean.set_failed");
sLogger.log(Level.WARNING, e.getLocalizedMessage(), e);
}