public void setAttribute( ObjectName name, Attribute attribute) throws InstanceNotFoundException, AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException;
Attribute descAttr = new Attribute("Description","A description for my queue"); mbeanServer.setAttribute(queueObjName, descAttr);
Some adapters such as the Sun HtmlAdaptorServer invoke the getAttribute() and setAttribute() methods recursively when getting or setting several attributes rather than invoking getAttributes() or setAttributes(). This may result in a high overhead. In this case, it would be a good idea to increase the cacheInterval attribute in the Admin MBean (see reference Admin MBean). Caching attribute values will decrease the amount of work being done by the adaptor.
Parent topic: Useful MBeanServer methods