jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting" <jukka.zitt...@gmail.com>
Subject Re: repository shutdown
Date Mon, 17 Apr 2006 15:19:15 GMT

On 4/16/06, Torgeir Veimo <torgeir@pobox.com> wrote:
> A TransientRepository wouldn't be sufficient here, since it doesn't
> actually persist any data?

It does persist the data. The naming is a bit unfortunate (my
mistake), it refers to the transient nature of the underlying
RepositoryImpl instance (it is only present when one or more sessions
are open), not to whether the content data is persisted or not.

> What's exactly the issue with the repository that prevents gc when all
> sessions are closed?

The RepositoryImpl class sets up quite a few internal data structures
that are shared by all the sessions. These data structures are only
released when shutdown() is called, not when sessions are closed.


Jukka Zitting

Yukatan - http://yukatan.fi/ - info@yukatan.fi
Software craftsmanship, JCR consulting, and Java development
View raw message