From users-return-4652-apmail-jackrabbit-users-archive=jackrabbit.apache.org@jackrabbit.apache.org Fri Aug 17 14:25:58 2007 Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 9472 invoked from network); 17 Aug 2007 14:25:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Aug 2007 14:25:55 -0000 Received: (qmail 83543 invoked by uid 500); 17 Aug 2007 14:25:52 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 83525 invoked by uid 500); 17 Aug 2007 14:25:52 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 83516 invoked by uid 99); 17 Aug 2007 14:25:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Aug 2007 07:25:52 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [213.133.33.40] (HELO smtp.is.nl) (213.133.33.40) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Aug 2007 14:26:11 +0000 Received: from [213.133.51.241] (HELO hai01.hippo.local) by smtp.is.nl (CommuniGate Pro SMTP 5.0.10) with ESMTP id 21766722 for users@jackrabbit.apache.org; Fri, 17 Aug 2007 16:25:28 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.0.6619.12 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Subject: RE: jcr observation event after node/prop has been indexed Date: Fri, 17 Aug 2007 16:25:28 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: jcr observation event after node/prop has been indexed Thread-Index: Acfg1njBT1jucRXpR36wLKxQe/X8gQAA1VTw From: "Ard Schrijvers" To: X-Virus-Checked: Checked by ClamAV on apache.org > Marcel Reutegger wrote: > I'm not sure I understand your question because in Jackrabbit regular=20 > EventListener are always called after the content is indexed.=20 > I wrote 'regular'=20 > because you can also register a listener that implements=20 > org.apache.jackrabbit.core.observation.SynchronousEventListene > r, in which case=20 > the listener might be called before content is indexed. the=20 > QueryHandler itself=20 > gets notified about changes using a SynchronousEventListener. You did understand me correct and I am glad it works the way you = describe it. I got the wrong impression, because after a session.save() = I got almost instant events (in unit tests), while I though that if they = would be sent after the indexing, I would have to wait for around 1 sec = before the index queue runs (or...is this different in the tests? that = the indexing runs synchronous?). But I probably just draw the wrong = conclusion (I did not check the code, it was based on my assumption) Anyway, I am obviously fine with the way it works=20 Thanks, Ard >=20 > regards > marcel >=20