jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting" <jukka.zitt...@gmail.com>
Subject Re: Event Listeners?
Date Wed, 21 May 2008 13:20:20 GMT
Hi,

On Wed, May 21, 2008 at 3:51 PM, Conoly, Brett
<Brett.Conoly@digitalinsight.com> 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

Mime
View raw message