Hello, On Mon, Sep 7, 2009 at 10:42 AM, Dirkjan van Diepen<[email protected]> wrote: > 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.
Are,you sure about this? This sounds really strange to me, and also, fortunately, I am pretty confident this is not the case. Afaik, a synchronized method is responsible for evicting cached items, where, even if it takes long, which is unlikely, no jms event ever would and should be lost. I think the problem is wrt writing from an application to the repository. Suppose the indexing takes place every 3 seconds. This means, document queue for indexing is build up for 3 seconds before being processed. It is a known issue that *when* within this time, you delete and recreate the document, the jms event of the delete is lost. This is an internal repository issue, which I could have fixed in the past, but, after I explained it on lists, people always chose the workaround: instead of delete and recreate, just use update. If you search the our mail archive, you'll sure find my previous explanations on the issue. Regards Ard > > 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 > > ******************************************** 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
