Missing JMSsample.java for ENS notification
I'm trying to find the JMSsample.java that is mentioned in the "Event Notification Service Guide" ... the guide claims that it is located at:
msg_server_base/bin/msg/enssdk/java directory
Which I simply cannot find! I've installed the entire JES suite, and the file is nowhere.
the ens.jar file is present which is required to compile this class, but no sample, and I'm needing to create a Java subscriber that will notify external users when mail arrives in their box in a secure messaging installation.
Does anyone have this source anywere? If so, please post it!
Thanks in advance
Dean
[639 byte] By [
djmurf] at [2007-11-26 10:52:18]

# 3
Hi,The file you want does indeed exist in the iMS5.2 installation :/usr/iplanet/server5/bin/msg/enssdk/java/com/iplanet/ens/samples/JmsSample.javaIf you want to supply an email address I will send it through.Regards,Shane.
# 6
Hi Shane,
Can you also send that sample file to me -
My email - kishorebh@yahoo.com
I am planning to write a batch process to which will wake of periodically and read the event queue. Will the event queue maintain the information even if the subscriber is not there or it will drop the event messages.
Thanks,
# 8
Hi,
Email sent with JMSsample.java file.
As Jay noted, if a listener for an event doesn't exist (your program isn't running in this case), the events are discarded.
In the next version (messaging server 6.3 - due sometime early next year), you can use the java message queue for events which provides the facility to have queues of events which have timeouts e.g.
./configutil -o local.store.notifyplugin.jmqnotify.ttl -v 1000
./configutil -o local.store.notifyplugin.jmqnotify.Persistent -v 1
That gives a persistent message with a time-to-live of 1 second.
Regards,
Shane.