jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shepy <vladosep...@yahoo.com>
Subject Re: How to add lock tokens
Date Thu, 30 Aug 2007 15:57:38 GMT

I see, 

   But for me it's more complicated because i'm using spi (rmi) for
comunicating with remote repository. At the end i will need to write
jackrabbit specific code (jcr-rmi) to add listener (because i can't add it
from client side - is that even possible?). 


Stefan Guggisberg wrote:
> 
> On 8/30/07, shepy <vladoseprak@yahoo.com> wrote:
>>
>> Hi,
>>
>>    I'm using open scoped locks. User should lock the node, log-out and
>> then
>> log-in and be able to unlock the node (if the lock was placed by him in
>> the
>> first place). Till now i came up with one solution: Store users lock
>> tokens
>> in filesystem and add the tokens upon creating new session. I don't like
>> it
>> because i need to extend RepositoryImpl. Is there some other, more
>> elegant
>> solution?
> 
> i am afraid, not really. you'll have to write jackrabbit-specific
> code. however, instead
> of extending RepositryImpl you could register a SessionListener
> (SessionImpl.addListener()) and retrieve/persist the lock tokens on
> session logout.
> 
> cheers
> stefan
> 
>>
>> Thanks for answer.
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-add-lock-tokens-tf4353897.html#a12405970
>> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-add-lock-tokens-tf4353897.html#a12410300
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message