jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sriraj paul <srirajp...@yahoo.co.uk>
Subject JCR event listenser unexpected behaviour when using wedav
Date Tue, 19 Oct 2010 07:36:34 GMT
Hi,

I am trying to experiment with event listeners in jcr.

I have the following code

Repository repository = JcrUtils.getRepository( 
Session session = repository.login(
EventListener listener = 
session.getWorkspace().getObservationManager().addEventListener(listener,Event.
session.getRootNode().addNode(
session.save();"http://localhost:8080/server/");newSimpleCredentials("admin", 
"admin".toCharArray()),null);newDummyListener();NODE_ADDED, "/", true, null, 
null, true);"tring");session.logout();
 
and
Dummy listener just prints event path and event info.
 
Even though noLocal parameter(last parameter) in addEventListener(...) is set to 
true,  event of creating the node through 
"session.getRootNode().addNode("tring");" is getting caught. But when i access 
repository though JNDI this event is not getting caught which is the expected 
behaviour. Is this a bug of in jcr webdav or am i doing anything wrong?
 
Thank you
Sriraj


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