Hi, On Wed, May 21, 2008 at 3:51 PM, Conoly, Brett <[EMAIL PROTECTED]> 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
