You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by Jukka Zitting <ju...@zitting.name> on 2005/10/07 16:18:28 UTC

HEADS UP: Automatic repository shutdown removed

Hi,

Warning to all people who are relying on Jackrabbit to automatically close the
repository when the JVM shuts down. As discussed in JCR-120 I've now (revision
307128) removed the JVM shutdown hook from the RepositoryImpl class. This
implies that all clients that call RepositoryImpl.create() must from now on
also explicitly call RepositoryImpl.shutdown() to close the repository.

I did add a similar shutdown hook to the BindableRepository class to avoid
problems in JNDI-based container environments where there is no easy way to
invoke the shutdown() method.

BR,

Jukka Zitting