Sun Java System Messaging Server 6 2005Q4 Administration Guide

Loading the ENS Publisher in Messaging Server

The Event Notification Service (ENS) is the underlying publish-and-subscribe service. ENS acts as a dispatcher used by Sun Java System 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 Messaging Server) are bundled starting with Messaging Server. By default ENS is enabled, however, iBIFF is not loaded. (See Loading the ENS Publisher in Messaging Server.

In order to subscribe to notifications in Messaging Server, you need to load the libibiff file on the Messaging Server host then stop and restart the messaging server.

ProcedureTo Load the ENS Publisher on Messaging Server

Perform the following steps from the command line. In these steps, the location of the Messaging Server installation directory is msg_svr_base, and the Messaging Server user is inetuser. Typical values for these variables are /opt/SUNWmsgsr, and inetuser, respectively.

Steps
  1. As inetuser, run the configutil utility to load the libibiff file.


    cd msg_svr_base
    ./configutil -o "local.store.notifyplugin" -v "msg_svr_base/lib/libibiff"
    
  2. As root, stop then restart the messaging server.

    cd msg_svr_base/sbin

    ./stop-msg

    ./start-msg

  3. You are now ready to receive notifications through ENS. See Running Sample Event Notification Service Programs