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:Andrea K. (akre@alteanet.it)
Date:Oct 1, 2007 2:54:52 am
List:org.apache.jackrabbit.users

Hi Jukka, is it (also) right to do that using Repository rather than BindableRepository?

Like this:

InitialContext context = new InitialContext(); ... Repository repository = (Repository)context.lookup("jcr/repository");

Thanks. BR Andrea -

Jukka Zitting wrote:

Hi,

On 10/1/07, Khanapurkar, Mona A. <Mona@idearc.com> wrote:

I would like to have a clear picture of TransientRepository Vs. BindableRepository. What are their pros and cons? Which one should I use in what circumstance?

TransientRepository is a simplified Repository entry point, that gives you default configuration (though you can explicitly override it) and automatically shuts down the repository when the last session is closed. TransientRepository is typically used in test or example code, and sometimes in simple embedded deployments.

BindableRepository is a Repository entry point that can be bound to a JNDI directory for lookup and use as a shared resource in a J2EE environment. BindableRepository is typically used in Model 2 deployments in servlet containers.

BR,