Set your CLASSPATH to include the following:
ens.jar file - ens.jar
(For Messaging Server, the ens.jar is located in the msg_server_base/java/jars/ directory.)
Java Message Service - full-path/jms1.0.2/jms.jar
Change to the msg_server_base/bin/msg/enssdk/java directory.
Run the following command:
javac com/iplanet/ens/samples/JmsSample.java |
Change to the msg_server_base/bin/msg/enssdk/java directory.
Run the following command:
java com.iplanet.ens.samples.JmsSample |
You are prompted for three items:
ENS event reference (for example, for Messaging Server: enp://127.0.0.1/store)
ENS hostname
ENS port (typically 7997)
Publish events.
For Messaging Server, the two ways to publish events are:
You can use the apub C sample program for ENS. See Sample Code
If you have enabled ENS, configure iBiff to publish Messaging Server related events.
For Calendar Server, events are published by the Calendar Server.