1 Reply Latest reply on May 8, 2013 5:30 PM by rhauch

    How does JCR Observation work in a clustered ModeShape environment?

    eric.wittmann

      I have implemented relatively simple auditing in the S-RAMP (JBoss Overlord) repository.  To do this, I'm registering a single JCR Event Listener when our system starts up (and removing it on shutdown).  It listens to all events and automatically creates audit nodes.  It works pretty well. :)  My question:  how does JCR Observation work in a clustered ModeShape environment?

        • 1. Re: How does JCR Observation work in a clustered ModeShape environment?
          rhauch

          Assuming that the cluster is set up correctly (that is, each process in the cluster actually joins/forms the cluster correctly), then each listener will see all events from all changes on all processes in the cluster. The only exception is when you register a listener to see only non-local changes, in which case the listener will get only those events that eminate from other processes in the cluster.