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: TransientRepository Vs. BindableRepository
Date Tue, 02 Oct 2007 20:04:39 GMT

On 10/1/07, Khanapurkar, Mona A. <Mona.A.Khanapurkar@idearc.com> wrote:
> Consider two applications deployed to a server that hosts the repository
> configured using BindableRepositoryFactory. Each application gets access
> to the shared repository by the following code:
> InitialContext context = new InitialContext();
> Repository  repository = (Repository)context.lookup("jcr/repository");
> My question is, do both applications get the same instance of the
> repository? In other words, does BindableRepositoryFactory return same
> instance of the repository to both these applications requesting it?

Yes, that's the typical Model 2 deployment scenario. You just need to
make sure that you configure the JNDI directory entry in one place,
and refer to the same repository name ("jcr/repository" in your case)
in both applications.


Jukka Zitting

View raw message