Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 68718 invoked from network); 21 May 2008 13:20:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 May 2008 13:20:50 -0000 Received: (qmail 40087 invoked by uid 500); 21 May 2008 13:20:51 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 39863 invoked by uid 500); 21 May 2008 13:20:50 -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 39852 invoked by uid 99); 21 May 2008 13:20:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 May 2008 06:20:50 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jukka.zitting@gmail.com designates 66.249.82.231 as permitted sender) Received: from [66.249.82.231] (HELO wx-out-0506.google.com) (66.249.82.231) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 May 2008 13:20:04 +0000 Received: by wx-out-0506.google.com with SMTP id i27so2469870wxd.13 for ; Wed, 21 May 2008 06:20:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=pEJgjyd9SXjkulr9DdWwVvHzCh6fHz5OWcrt1BMHtr8=; b=NFhxVxg4gEpB2fbJK8555Zvt3Rd/uTCSol/YMBVatlx4cRGhIrukuLC6GVX1LQu1qmefjoDR9uiZBsxPmEN2m2fKV6dJUSPwjhZPj6d9W/SE/i9EpCrqUrdylE/zkoo183f+omUv0d/Tm+vEjwG6PYsIZHMNtuwdweIwX4wUOVo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qpP+g3X+6LStuJpLxbMhVel7oHPMnTEgsqSFvEvAecYUrfhuH7oXxWsEEKm5eod37Pg5k5i722H2t756rM+OvCUfRfD+wdUVTISXlTBCr1qN41uEpJFAf+p9iRrkQ89UrIDdBQoozLNkB1F9wRFZf2j6G1Jie68I+a1QBWwYqZ4= Received: by 10.90.116.4 with SMTP id o4mr264034agc.76.1211376020062; Wed, 21 May 2008 06:20:20 -0700 (PDT) Received: by 10.90.115.13 with HTTP; Wed, 21 May 2008 06:20:20 -0700 (PDT) Message-ID: <510143ac0805210620m7129d7b0k926cc001a37a107f@mail.gmail.com> Date: Wed, 21 May 2008 16:20:20 +0300 From: "Jukka Zitting" To: users@jackrabbit.apache.org Subject: Re: Event Listeners? In-Reply-To: <7E79528FEA116746A9B896C817C51E5B02D57C6B@athexm01.corp.ad.diginsite.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7E79528FEA116746A9B896C817C51E5B02D57C6B@athexm01.corp.ad.diginsite.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi, On Wed, May 21, 2008 at 3:51 PM, Conoly, Brett wrote: > I have a singleton instance holding information retrieved from many > files in the repository and I have an EventListener made to watch the > files for any changes to those files. > > When a file is changed, the event listener gets an instance of the > singleton and reloads the information in that file. > > I was told by someone in this forum a little while back that the > EventListeners keep listening as long as the session is still active. > > This doesn't seem to make sense unless I just need to hold a reference > to a session and never close it in order to get the Listener to work > correctly??? What's wrong with such a session? > Is there any way to register an EventListener for the life of the > repository, for a single workspace, or anything else? You can create a "listener session" just for that purpose. BR, Jukka Zitting