This topic describes how to use the two sample subscriber
programs that are shipped with Location Awareness Services for WebSphere® Premises Server: sample
mail service program and sample alert events subscriber program.
About this task
The sample subscriber and notification programs are referenced
in the sample data and can be used to verify your installation. If
you do not want to use them, you can deactivate them.
Procedure
- In the http_root\htdocs\en_us\wsdl\EmailHandler.wsdl file,
make sure that the host_name: portnumber key value
pair reflects the real WC_defaulthost port. The sample
includes 9080 as the port number.
- In the Mail Server portlet, configure your mail server:
- Open the WebSphere Application Server administrative console and
click .
- On the Mail Host Configuration page, click Add.
- In Host Address, enter the IP
address or fully qualified host name of your mail server.
- In Port, enter the port number.
- In Default Sender, enter your
e-mail address.
- In Default Subject, enter a default
subject line to send with the notification.
- Click Save to save your settings.
- In the Mail Receiver portlet, specify receiver information
for users who should receive notification of specific events:
Note: Times
are relative to times on the database server. The machines that host
the database server and WebSphere Application Server must
be set to the same time zone.
- Open the WebSphere Application Server administrative console and
click .
- Click Add New Mail Receiver.
- In Receiver Name, enter the name
of a receiver.
- In Receiver Address, enter the
e-mail address of a receiver.
- In Week Days, select the days
of the week when the receiver should be notified of events.
- In Start Time, enter the time
when the receiver should start receiving notification each day.
- In End Time, enter the time when
the receiver should stop receiving notification each day.
- In Alert Types, select the type
of alerts that the receiver should be notified about.
- In Mail Host, select the mail
server to associate with the receiver.
- Click Save to save your settings.