It looks I am helpless because I use:
<bean id="credentials" class="javax.jcr.SimpleCredentials">
<constructor-arg index="0" value="admin"/>
<constructor-arg index="1">
<bean factory-bean="password" factory-method="toCharArray"/>
</constructor-arg>
</bean>
<bean id="password" class="java.lang.String">
<constructor-arg index="0" value=""/>
</bean>
This is passed to repository.login for my development environment and it does
look like admin account.
Marek
> ------------ Původní zpráva ------------
> Od: Mark Herman <[email protected]>
> Předmět: Re: Any way how to remove node lock?
> Datum: 06.2.2012 16:15:24
> ----------------------------------------
>
> mslama wrote
> >
> >
> > But from my first incorrect test I have now some locked nodes. Is there
> > any wahy how to remove locks from nodes?
> >
> >
>
>
> The only way I have found is to log in as the "admin" account. That seems
> to be able to clean up the locks without following the normal rules.
>
> FYI, you also have to be careful about not logging out. I found that if
> somewhere you have code that doesn't result in a logout() or you get a hard
> crash, that session will remain and even if you know the lock token, JR
> won't let you add it to a 2nd session.
>
>
>
> --
> View this message in context:
> http://jackrabbit.510166.n4.nabble.com/Any-way-how-to-remove-node-lock-tp4361516p4361534.html
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>
>
>
Marek Slama
[email protected]