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]
# 1
I'll see what I can find for you.
jay_plesset at 2007-7-7 3:05:08 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 2
That would be great. I've looked just about everywhere I can think of. Thought that maybe if an older Sun Messaging install could be located ( 5.1/5.2 ) it may be present there. Thanks -- appreciate anything at this point!Dean
djmurf at 2007-7-7 3:05:08 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 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.
shane_hjorth at 2007-7-7 3:05:08 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 4
That would be awesome. Please send to: djmurf@swbell.netThank you!Dean
djmurf at 2007-7-7 3:05:08 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 5
Got it Shane. Thank you very much!Dean
djmurf at 2007-7-7 3:05:08 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 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,

HellFire at 2007-7-7 3:05:08 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 7
There really isn't an "event queue" for ENS. You need to have a listener to catch the events.
jay_plesset at 2007-7-7 3:05:08 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 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.

shane_hjorth at 2007-7-7 3:05:08 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...