Management rules enable you to automate routine administration tasks, configure self-tuning of the application server for diverse runtime condition and improve availability by preventing failures. A management rule contains an action to be taken when a specified event occurs or a set threshold is reached. You can set management rules that can automatically take corrective action, based on events that you specify.
A management rule consists of two parts -- event and action:
An event uses the JMX notification mechanism to trigger a pre-defined action.
An action is triggered by the data associated by a event actions are performed by custom MBeans that implement javax.management.NotificationListener.
For example, when a SEVERE message occurs in the EJB logger, the log record will be sent to the action MBean as a field of javax.management.LogNotification.
The action specified in your rule is executed by an 'action' MBean. Therefore, before configuring a management rule, you should deploy a custom MBean designed to receive event notifications and take appropriate action. For details on developing a custom MBean and deploying it, see Chapter 14, "Developing Custom MBeans," in Sun Java System Application Server Platform Edition 9 Developer's Guide.