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: how to shutdown a remote repository
Date Thu, 01 Mar 2007 08:57:06 GMT
Hi,

On 2/28/07, ruchi goel <Ruchi.Goel@sun.com> wrote:
> *But here RemoteRepository does not have a method to shutdown !!
>
> Is there some other way to shutdown the repository ?*

No, the RMI layer currently does not expose the shutdown() method. The
reason for this was that the responsibility of stopping the repository
should be on the component that started it in the first place, not on
some remote client. It is a separate question on whether that
component want's to expose some mechanism (perhaps another RMI
interface) for remote clients to request repository shutdown.

One alternative you might want to consider is to use
TransientRepository as the repository that's gets bound remotely. The
TransientRepository class automatically shuts down the repository when
there are no active sessions connected to it.

BR,

Jukka Zitting

Mime
View raw message