jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msl...@email.cz
Subject Any way how to remove node lock?
Date Mon, 06 Feb 2012 15:07:56 GMT
Hi,

I experimented with node locking. I am under JBoss with XATransaction and if I understand
this correctly it means it has now container managed transactions which means transaction
starts when I create new session and end on session logout.

To make lock visible to another session I used:
newSession
lock Node
session logout

newSession
modifyNode
unlock Node
session logout

I just found that I have to transfer lock token so fixed version is:
newSession
lock Node
get lock token
session logout

newSession
add lock token
modifyNode
unlock Node
session logout

Is it correct? But from my first incorrect test I have now some locked nodes. Is there any
wahy how to remove locks
from nodes?

Thanks

Marek

Mime
View raw message