jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paco Avila <pav...@git.es>
Subject Re: lock not session scoped
Date Thu, 13 Jul 2006 07:25:27 GMT
El jue, 13-07-2006 a las 08:47 +0200, Angela Schreiber escribió:
> hi paco
> 
> Paco Avila wrote:
> > If I create a lock with isSessionScoped=false, when I perform logout and
> > login I have a new session and can't unlock this node. Should I
> > serialize and reutilize the session?
> 
> for the open-scoped locks you have to transfer the lock token
> to the Session that you want to become the lock holder.
> 
> see Session.addLockToken(String) and Session.removeLockToken(String)

I made the same question twice, sorry.

My real problem is when I transfer the token. The new session holds the
lock token, but when I do an unlock, the token still remain in session.
Do I need to remove it manually? This sounds a bit weird :/
-- 
Paco Avila <pavila@git.es>


Mime
View raw message