You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by ChadDavis <ch...@gmail.com> on 2009/11/25 22:55:53 UTC

ProxyRepository

In the standalone server, the JackrabbitRepositoryServlet creates the
repository, then it stores a ProxyRepository, instead of the actual
repository, in the servlet context.  It appears that the proxy does
nothing; it in fact returns the very same repository that was created
earlier, but through an intermediary factory.

I'm NOT complaining.  But I am trying to understand how I should write
creation code in my own app.  What is the purpose of this
ProxyRepository?

Re: ProxyRepository

Posted by Rakesh Vidyadharan <ra...@sptci.com>.
On 25 Nov 2009, at 15:55, ChadDavis wrote:

> In the standalone server, the JackrabbitRepositoryServlet creates the
> repository, then it stores a ProxyRepository, instead of the actual
> repository, in the servlet context.  It appears that the proxy does
> nothing; it in fact returns the very same repository that was created
> earlier, but through an intermediary factory.

I have not used any other repository implementations, but the TransientRepository automatically creates a fresh repository at the specified location if it does not exist.

Rakesh