6 messages in org.apache.jackrabbit.usersRe: TransientRepository Vs. BindableR...
FromSent OnAttachments
Khanapurkar, Mona A.Sep 30, 2007 9:31 pm 
Jukka ZittingSep 30, 2007 11:43 pm 
Andrea K.Oct 1, 2007 2:54 am 
Jukka ZittingOct 1, 2007 3:09 am 
Khanapurkar, Mona A.Oct 1, 2007 8:18 am 
Jukka ZittingOct 2, 2007 1:04 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: TransientRepository Vs. BindableRepositoryActions...
From:Jukka Zitting (jukk@gmail.com)
Date:Oct 2, 2007 1:04:16 pm
List:org.apache.jackrabbit.users

Hi,

On 10/1/07, Khanapurkar, Mona A. <Mona@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.

BR,