Configures the listener class that listens for alerts from notification emitters. For example:
<listener-config
listener-class-name="com.sun.enterprise.admin.notification.MailAlert"
subcribe-listener-with="LogMBean,ServerStatusMonitor" >
<property name="recipients" value="Huey@sun.com,Dewey@sun.com" />
<property name="fromAddress" value="Louie@sun.com" />
<property name="subject" value="Help!" />
<property name="includeDiagnostics" value="false" />
<property name="mailSMTPHost" value="ducks.sun.com" />
</listener-config>
The following table describes subelements for the listener-config element.
Table 1–106 listener-config Subelements|
Element |
Required |
Description |
|---|---|---|
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the listener-config element.
Table 1–107 listener-config Attributes|
Attribute |
Default |
Description |
|---|---|---|
|
none |
Specifies the class name of the listener. The com.sun.appserv.admin.notification.MailAlert class is provided with the Enterprise Server, but a custom listener can be used. |
|
|
none |
Specifies a comma-separated list of notification emitters to which the listener listens. The LogMBean and ServerStatusMonitor notification emitters are provided with the Enterprise Server, but custom emitters can be used. |