Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 94441 invoked from network); 2 Feb 2010 11:07:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Feb 2010 11:07:20 -0000 Received: (qmail 64703 invoked by uid 500); 2 Feb 2010 11:07:19 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 64630 invoked by uid 500); 2 Feb 2010 11:07:19 -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 64619 invoked by uid 99); 2 Feb 2010 11:07:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2010 11:07:19 +0000 X-ASF-Spam-Status: No, hits=-0.6 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [64.18.2.163] (HELO exprod7og105.obsmtp.com) (64.18.2.163) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 02 Feb 2010 11:07:09 +0000 Received: from source ([204.15.88.135]) by exprod7ob105.postini.com ([64.18.6.12]) with SMTP ID DSNKS2gHRoxx+1/5HmhtK6ZQqX4hMUo5OJ+1@postini.com; Tue, 02 Feb 2010 03:06:49 PST To: users@jackrabbit.apache.org Subject: Jackrabbit Observation with Spring Message-ID: From: AElshereay@idc.com Date: Tue, 2 Feb 2010 11:04:26 +0100 Content-Type: multipart/alternative; boundary="=_alternative 003D0900C12576BE_=" MIME-Version: 1.0 X-KeepSent: 04190D10:15121CCF-802576BE:00358FCF; name=$KeepSent; type=4 X-Mailer: Lotus Notes Release 7.0.2 September 26, 2006 X-Disclaimed: 19095 X-Virus-Checked: Checked by ClamAV on apache.org --=_alternative 003D0900C12576BE_= Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Hi All, I am new to observation, although the repository supports observation,=20 onEvent() is never invocked. Here're the details: I created a Param class, and it's just a POJO with setters and getters=20 hasing properties that each represents a parameter for:=20 ObservationManager.addEventListener() I careted an interface XListener that extends EventListener, and defined a = method: Params getParameters(). Crated MyEventListener implements XListener and implements the=20 getParameters() and onEvent() getParameters() just populate a Param object (with NODE=5FADDED) and return= =20 it to be used later to add *this* listener, and onEvent() currently it only prints out that NEW NODE ADDED. Then created a new class ListenerRigistrar and added it in the=20 applicationContext.xml for Spring with a which is a set=20 of XListeners. Added a new bean for MyEventListener. back to ListenerRegistrar, I iterate over the set of listeners and use the = Params object embeded with the listener to call=20 ObservationManager.addEventListener() The problem is that the message NEW NODE ADDED is never been printed means = onEvent() method is never invocked!! Can anyone help me please? Thank you in advance, shre3y --=_alternative 003D0900C12576BE_=--