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