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 Mon, 17 Jul 2006 17:47:27 GMT
Hi Torgeir,

Torgeir Veimo wrote:
> systemSession.getWorkspace().getObservationManager().addEventListener(new 
> ProtectedNodeListener(systemSession),
>   (Event.NODE_ADDED | Event.NODE_REMOVED),
>   "/", true,
>   null,
>   new String [] { "nt:folder", "nt:file" },
>   true);
> 
> Then on creating an nt:folder with path /test3/blabla, the event reports 
> a NODE_ADDED with path /test3/blabla/nen:ace (which is a subnode added 
> in the same session.save() and not an nt:folder node).

This is expected behaviour. The spec says about the node type parameter:

<jsr-170>
nodeTypeName: Only events whose associated parent node has one of the
node types (or a subtype of one of the node types) in this list will
be received. If this parameter is null then no node typerelated
restriction is placed on events received. Note that specifying an
empty array instead of null would result in no node types being
listened to.
</jsr-170>

regards
  marcel

Mime
View raw message