jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dirk Högemann <dirk.hoegem...@googlemail.com>
Subject EventListener
Date Fri, 27 Jul 2012 17:59:59 GMT

I am trying to write an EventListener for jackrabbit2.2.
The connection is done via RMI:

HashMap<String, String> params = new HashMap<String, String>();

    repository = JcrUtils.getRepository(params);

The eventlistener should be able to receive Events from ongoing work with
the repository.
But in addition it should be possible to start with events in the past.

I tried this with the following code:

      ObservationManager observationManager =
      EventJournal journal = observationManager.getEventJournal();
      journal.skipTo(System.currentTimeMillis() - 30000);

Unfortunately the getEventJournal() Method is not implemented and throws an

Code in the corresponding Class: ClientObservationManager:
    public EventJournal getEventJournal() throws RepositoryException {
        throw new UnsupportedRepositoryOperationException("TODO:

Is there another way to get this job done, or can someone give me advice
how to implement that method?

Dirk Högemann

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message