Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 27689 invoked from network); 6 Nov 2005 12:02:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Nov 2005 12:02:37 -0000 Received: (qmail 52462 invoked by uid 500); 6 Nov 2005 12:02:35 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 52450 invoked by uid 99); 6 Nov 2005 12:02:35 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Nov 2005 04:02:35 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of tobias.strasser@gmail.com designates 64.233.184.192 as permitted sender) Received: from [64.233.184.192] (HELO wproxy.gmail.com) (64.233.184.192) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Nov 2005 04:02:29 -0800 Received: by wproxy.gmail.com with SMTP id i2so499910wra for ; Sun, 06 Nov 2005 04:02:14 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=s5ihupNYe3VY/on8dzITFRDCjx3uDmxoL6xdxAZRxHfq05f7ja9OU31FmUTGfZ5+8OO7uKdCVmrnsMTHc7ZBkgmOJDXqQoMWptBua9f8rdNW9IJm78dHpNnUuMFNZURSQp+1rFI71HPORBkG1pklkGzw+Gawao5LMBMfDIZ8Dls= Received: by 10.54.104.17 with SMTP id b17mr2991244wrc; Sun, 06 Nov 2005 04:02:14 -0800 (PST) Received: by 10.54.63.1 with HTTP; Sun, 6 Nov 2005 04:02:13 -0800 (PST) Message-ID: <8be731880511060402y2c501f2are7eced941926164e@mail.gmail.com> Date: Sun, 6 Nov 2005 13:02:13 +0100 From: Tobias Bocanegra Reply-To: tobias.bocanegra@day.com Sender: tobias.strasser@gmail.com To: jackrabbit-dev@incubator.apache.org Subject: Re: Observation manager In-Reply-To: <1131142831.6487.2.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <1131142831.6487.2.camel@localhost.localdomain> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > You want me to provide > getObservationManager().addEventListener ? but with what arguments? are you sure you select the correct events to list= en to if you want to listen to all events do: wsp.getObservationManager().addEventListener(listener, Event.NODE_ADDED | Event.NODE_REMOVED | Event.PROPERTY_ADDED | Event.PROPERTY_REMOVED, "/", true, null, null, false); > There is nothing to it. > After that I use > session.getWorkspace(),getObser...getEventListenerIterator, > and it's empty. please note, that the event listener is bound to the session you retrieve the workspace from. once you close/logout the session, the listener is removed. regards, toby On 11/4/05, Aleksandar Pecanov wrote: > I have a little bit of problem. Maybe I'm misusing something. > When adding an event listener to the observation manager, no exceptions > are throwen, everything seems fine. But no events are delivered to the > event listeners and when I get the event listener iterator from the > manager, it's empty. > Does observation work in jackrabbit? > > Thank you > > -- -----------------------------------------< tobias.bocanegra@day.com >--- Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel T +41 61 226 98 98, F +41 61 226 98 97 -----------------------------------------------< http://www.day.com >---