jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Abley" <james.ab...@gmail.com>
Subject Re: Shutting down will probably never finish
Date Fri, 01 Feb 2008 11:41:02 GMT
On 01/02/2008, safi <potkaljinahoubach@email.cz> wrote:
> Hi,
> I would like to ask why shutting down a repository takes a long long time
> and it does not seem that shutting will ever finish.
> I access repository from a servlet and what I am trying to do is to close
> all sessions. I was said that shutting down whole repository is a way how to
> do that. So in a servlet I have this code:
> try {
>         javax.jcr.Session session = repository.getSession();
>         ((org.apache.jackrabbit.api.JackrabbitRepository)
> session.getRepository()).shutdown();
>         System.out.println("repository has been shut");
> } catch (Exception ex) {
>         ex.printStackTrace();
> }
> When I call a servlet the code stucks on shutdown() method. "Repository has
> been shut" is never printed to the stout. Does anybody know where could be a
> problem?

How long is 'never' in this case?

Maybe it's throwing an Error, not an Exception?



View raw message