jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Harris" <michael.e.har...@gmail.com>
Subject Re: Releasing a non session scoped lock
Date Wed, 20 Aug 2008 11:47:27 GMT
I also meant to ask is there any way to automatically have new sessions
associated with any lock tokens associated with the user when the session is
created
?


On 8/20/08, Michael Harris <michael.e.harris@gmail.com> wrote:
>
> Right
>
> what I am wondering is what do you do if the application needs the lock to
> persist for long periods time, and possible between app server restarts.
> Where does the token get stored? Can I put it on the file node as a
> property?
>
>
>  On 8/20/08, Angela Schreiber <anchela@day.com> wrote:
>>
>> hi michael
>>
>> How does one release a non-session scoped lock?
>>>
>>
>> the Session that is the lock-holder (contains the
>> token associated with the lock) must call Node.unlock
>> to release the lock. the owner (userID) is for
>> information purpose only.
>>
>> see also:
>> Node#unlock
>> Session#addLockToken
>> Session#removeLockToken
>> Session#getLockTokens
>>
>> for details please refer to section '8.4 Locking' of the
>> specification.
>>
>> kind regards
>> angela
>>
>>
>>
>
>
> --
> ---------------------
> Michael Harris
>



-- 
---------------------
Michael Harris

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