You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Daniel Sanchez <in...@gmail.com> on 2009/07/14 14:20:31 UTC

Start after shutdown repository

Hi,
I'm working with jackrabbit in a OSGi environment. Everything works fine but
I need to start / stop the repository multiple times.
Is it possible to start the repository after calling shutdown?

Thanks

Re: Start after shutdown repository

Posted by Ian Boston <ie...@tfd.co.uk>.
On 14 Jul 2009, at 13:39, Bertrand Delacretaz wrote:

> Hi,
>
> On Tue, Jul 14, 2009 at 2:20 PM, Daniel Sanchez<in...@gmail.com>  
> wrote:
>> ...I'm working with jackrabbit in a OSGi environment. Everything  
>> works fine but
>> I need to start / stop the repository multiple times.
>> Is it possible to start the repository after calling shutdown?...
>
> I don't have an immediate answer, but Sling does that in its
> jackrabbit-server bundle, source code at
> http://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/jackrabbit-server/
>
> -Bertrand

I have managed to reload the jackrabbit-server bundle multiple times.  
I have not managed (or tried to) explicitly start and stop the  
Jackrabbit repository and IIRC, there are some static bindings that  
*might* make it unadvisable.

I don't know if its a OSGi thing, or just my mistakes, but if I have  
statics referenced from other bundles I find that reloading some  
bundles can cause Sling to become partially un-responsive, at times  
requiring a kill -9. I have a feeling that class-loaders may be being  
held open? Sadly no hard evidence to support that feeling.

Ian


Re: Start after shutdown repository

Posted by Bertrand Delacretaz <bd...@apache.org>.
Hi,

On Tue, Jul 14, 2009 at 2:20 PM, Daniel Sanchez<in...@gmail.com> wrote:
> ...I'm working with jackrabbit in a OSGi environment. Everything works fine but
> I need to start / stop the repository multiple times.
> Is it possible to start the repository after calling shutdown?...

I don't have an immediate answer, but Sling does that in its
jackrabbit-server bundle, source code at
http://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/jackrabbit-server/

-Bertrand