Hi Reinier,

When a batch of JMS events are received, not all JMs events are guaranteed
to be processed. When the time to process the events take too long, there is
a possibility that events, that are received in the mean time, will be lost
before it's being processed. You have to make sure that the processing of
the event takes as less time as possible.

A solution could be to process the events in a dedicated thread. In
the processEvent method of the listener you will only add events to the
thread. And let the thread handle the list of JMS events. For an example,
you can have a look at
http://svn.hippocms.org/repos/hippo/hippo-components/hippo-community-apps/tags/Release-HCA-v2_02_04/hca-notifier/src/java/nl/hippo/hca/notifier/updater/
Regards,

Dirkjan
********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Searchable archives can be found at:
MarkMail: http://hippocms-dev.markmail.org
Nabble: http://www.nabble.com/Hippo-CMS-f26633.html

Reply via email to