jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chetan Mehrotra <chetan.mehro...@gmail.com>
Subject Re: get default Repository from webapp in my servlet
Date Wed, 12 Aug 2015 15:06:13 GMT
AbstractRepositoryServlet would register the created repository
instance in ServletContext against attribute named
'javax.jcr.Repository'. So in your servlet you can obtain the instance
from ServletContext attribute
Chetan Mehrotra


On Wed, Aug 12, 2015 at 12:51 AM, Karsten Priegnitz <koem@petoria.de> wrote:
> Hi,
>
> I deployed the jackrabbit-webapp in tomcat, created a repo named
> "jackrabbit" in the web ui. The I added a startup servlet. When I do this
> ...
>
>     public class StartupServlet extends JackrabbitRepositoryServlet {
>
>         private final Repository repo = new ServletRepository(this);
>
> ... then automatically a new repository named "jackrabbit-repository" is
> created and returned.
>
> How to get hold of the already existing default repo named "jackrabbit"?
>
> Thx in advance
> Karsten
>
>

Mime
View raw message