Set the value of a specific attribute of this MBean.
// Validate the input parameters
if (attribute == null)
throw new RuntimeOperationsException(new IllegalArgumentException(
"Attribute is null"), "Attribute is null");
String name = attribute.getName();
Object value = attribute.getValue();
if (name == null)
throw new RuntimeOperationsException(new IllegalArgumentException(
"Attribute name is null"), "Attribute name is null");
try {
Connector connector = (Connector) getManagedResource();
IntrospectionUtils.setProperty(connector, name, String.valueOf(value));
} catch (InstanceNotFoundException e) {
throw new MBeanException(e);
} catch (InvalidTargetObjectTypeException e) {
throw new MBeanException(e);
}