AttributeChangeNotification

This class is used to notify interested JMX listeners when the value of an MBean attribute changes. It provides the following notification type:
  • jmx.attribute.changed: when the value of an attribute changes.

If an exception occurs when an attempt is made to change an attribute, the text of the exception will be passed back to the user via the notification 'message'. The getMessage() method can thus be used to retrieve the exception text. The AttributeChangeNotification class also provides getOldValue() and getNewValue() methods to return the original attribute value and the value to which it is being changed. In the event of an error, getNewValue() will not return the actual attribute value (since the attempt to change the attribute has not succeeded) – in this case, getOldValue() returns the actual attribute value at the point of notification.


Terms of use | WebSphere software

(c) Copyright IBM Corporation 2004, 2005. All rights reserved.