On Tue, Jul 21, 2009 at 4:05 PM, 祝乃庆<[email protected]> wrote: > hi,everyone > > when i use jackrabbit-jcr-rmi.jar to setup an remote respository. > how can i to set up a remote listener to listener server event.
Support for that is implemented in the RMI jar. Just do normal JCR observation manager registration, internally the ClientObservationManager will poll the server for events, but this is transparent to the API user. The only thing to note is that you have to keep the JCR session open as long as you want to receive events and that you need to make sure your client JVM does not terminate, because the thread that does the polling in the background will not block system exit AFAIK. Regards, Alex -- Alexander Klimetschek [email protected]
