jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting" <jukka.zitt...@gmail.com>
Subject Re: two questions about locks
Date Mon, 20 Nov 2006 09:59:27 GMT
Hi,

On 11/20/06, Paco Avila <pavila@git.es> wrote:
> 1.- How can I see the lock token associated to a lock?

   Lock.getLockToken()

> 2.- How can I unlock a node if the lock tokes is lost?

If the lock token is truly lost, you can try fishing it from the
"locks" file managed by the o.a.j.core.lock.LockManagerImpl class.
Once you've recovered the lock token, you can attach it to a session
and unlock the lock normally:

    Session.addLockToken()
    Node.unlock()

BR,

Jukka Zitting

Mime
View raw message