Conguring Management Rules
Thissection contains information about setting administration policies to automate routine
administrationtasks, congure self-tuning of the application server for diverse runtime
conditionsand improve availability by preventing failures. This section also contains
informationon the self-management templates, which are predened management rules that
youcan customize.
Thissection contains the following topics:
“AboutManagement Rules” on page 215
“ConguringManagement Rules” on page 216

About Management Rules

Managementrules enable you to automate routine administration tasks, congure self-tuning
ofthe application server for diverse runtime condition and improve availability by preventing
failures.A management rule contains an action to be taken when a specied event occurs or a
setthreshold is reached. You can set management rules that can automatically take corrective
action,based on events that you specify.
Amanagement rule consists of two parts — event and action:
Anevent uses the JMX notication mechanism to trigger a predened action.
Anaction is triggered when an associated event occurs. An action is an MBean which is a
noticationlistener which implements javax.management.NotificationListener.
Forexample, an event could be a SEVERE message logged by the EJB logger, and an action
couldbe alerting an administrator with the log message contents. When the event happens,
eventdata is passed as part of userData part of the javax.management.Notification.
Theaction specied in your rule has to be implemented as a custom MBean. Therefore, before
conguringa management rule, you should deploy a custom MBean designed to receive event
19
CHAPTER 19
215