jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JOSE FELIX HERNANDEZ BARRIO <jose.hernan...@isthari.com>
Subject Re: Problem locking a node
Date Tue, 06 Jul 2010 14:23:38 GMT
still debuging this issue,

if i execute the code :
  lock = manager.lock(node.getPath(), true, false, 100000000, "admin");
  System.out.println(lock.getLockToken());

            while (true){


System.out.println(manager.isLocked(node.getPath())+"\t"+lock.getSecondsRemaining());

                Thread.sleep(1000);
            }

the output:
91310ee2-3177-4616-9fee-5b0d80d76e30-T
true    100000000
false    -1
false    -1
false    -1
false    -1
false    -1

the node is locked only for a second !!




2010/7/6 JOSE FELIX HERNANDEZ BARRIO <jose.hernandez@isthari.com>

> Hi,
>
> later i reopen a session get the same node a call
> node.isLocked ();
>
> and this return false
> if i call node.getProperty("jcr:lockOwner"); returns void
>
>
>
>
> 2010/7/6 Jukka Zitting <jukka.zitting@gmail.com>
>
> Hi,
>>
>> On Tue, Jul 6, 2010 at 12:50 AM, JOSE FELIX HERNANDEZ BARRIO
>> <jose.hernandez@isthari.com> wrote:
>> > i'm trying to lock a node for 30 minutes
>> >
>> > lockManager.lock(node.getPath(), false, false, 1800, username);
>> > session.save();
>> > session.logout();
>> >
>> > there's no exception
>> > but the node doesn't get locked.
>>
>> How do you determine whether the node is locked or not? I.e. what line
>> of your code is giving results that you didn't expect seeing?
>>
>> BR,
>>
>> Jukka Zitting
>>
>
>
>
> --
> Jose Hernandez
> 675599600
> Isthari
> http://www.isthari.com
>



-- 
Jose Hernandez
675599600
Isthari
http://www.isthari.com

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