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 <[email protected]> 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 > >
