jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: event listener not getting any events..
Date Fri, 14 Jul 2006 12:21:00 GMT
Torgeir Veimo wrote:
> I'm registering an event listener like this:
> 
> systemSession.getWorkspace().getObservationManager().addEventListener(new 
> ProtectedNodeListener(systemSession),
>   (Event.NODE_ADDED | Event.NODE_REMOVED | Event.PROPERTY_ADDED | 
> Event.PROPERTY_REMOVED | Event.PROPERTY_CHANGED),
>   "/jcr:root",

what you rather want here is "/" not "/jcr:root" ;)

/jcr:root is only used in context of a document view mapping, such as 
document view export or XPath queries.

>   true,
>   null,
>   new String [] { "nen:protected", "nen:ace" },
>   true);

regards
  marcel


Mime
View raw message