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,