Previous Contents Index Next |
iPlanet Messaging Server 5.2 Administrator's Guide |
Appendix C Administering Event Notification Service in iPlanet Messaging Server
This appendix describes what you need to do to enable the iPlanet Event Notification Service Publisher (ENS Publisher) and administer iPlanet Event Notification Service (ENS) in iPlanet Messaging Server.This chapter/appendix contains these sections:
Loading the ENS Publisher in iPlanet Messaging Server
For more information on ENS and ENS APIs, see the iPlanet Messaging and Collaboration Event Service Notification Manual at the iPlanet Calendar Server and Messaging Server Documentation web page.
Loading the ENS Publisher in iPlanet Messaging Server
The Event Notification Service (ENS) is iPlanet's underlying publish-and-subscribe service. ENS acts as a dispatcher used by iPlanet applications as a central point of collection for certain types of events that are of interest to them. Events are changes to the value of one or more properties of a resource. Any application that wants to know when these types of events occur registers with ENS, which identifies events in order and matches notifications with subscriptions.ENS and iBiff (the ENS publisher for iPlanet Messaging Server) are bundled starting with iPlanet Messaging Server. By default ENS is enabled, however, iBIFF is not loaded. (See "To Load the ENS Publisher on iPlanet Messaging Server."
In order to subscribe to notifications in iPlanet Messaging Server, you need to load the libibiff file on the iPlanet Messaging Server host then stop and restart the messaging server.
To Load the ENS Publisher on iPlanet Messaging Server
Perform the following steps from the command line. In these steps, the location of the iPlanet Messaging Server installation directory is server_root, and the iPlanet Messaging Server user is mailsrv. Typical values for these variables are /usr/iplanet/server5, and mailsrv, respectively.
As mailsrv, run the configutil utility to load the libibiff file.
As root, stop then restart the messaging server.
- cd server_root/msg-instance
./configutil -o "local.store.notifyplugin" -v "server_root/bin/msg/lib/libibiff"
You are now ready to receive notifications through ENS. See "Running Sample Event Notification Service Programs" for more information.
- cd server_root/msg-instance
- ./stop-msg
- ./start-msg
Running Sample Event Notification Service Programs
iPlanet Messaging Server contains sample programs to help you learn how to receive notifications. These sample programs are located in the server_root/bin/msg/enssdk/examples directory.
To Run the Sample ENS Programs
Change to the server_root/bin/msg/enssdk/examples directory.
Using a C compiler, compile the apub and asub examples using the Makefile.sample file. Set your library search path to include the server_root/bin/msg/lib directory.
Once the programs have been compiled, you can run them as follows in separate windows:
To receive notifications published by iBiff, write a program similar to asub.c
- apub localhost 7997
- asub localhost 7997
- Whatever is typed in the apub window should appear on the asub window. Also, if you use the default settings, all iBiff notifications should appear in the asub window.
- For more information on the sample programs, and writing your own programs for ENS, see the iPlanet Event Notification Service for Messaging and Collaboration Manual.
Administering Event Notification Service
Administering ENS consists of starting and stopping the service, and changing the configuration parameters to control the behavior of the iBiff publisher for ENS.
Starting and Stopping ENS
You use the start-msg ens and stop-message ens commands to start and stop the ENS server. You must be root to run these commands.
To start ENS:
To stop ENS:
- server_root/msg-instance/start-msg ens
- server_root/msg-instance/stop-msg ens
iPlanet Event Notification Service Configuration Parameters
Several configuration parameters control the behavior of iBiff. Use the configutil utility program to set these parameters.
Previous Contents Index Next
Copyright © 2002 Sun Microsystems, Inc. All rights reserved.
Last Updated February 27, 2002