I just now figured out that this works:
public class MyStartupServlet extends HttpServlet {
...
Repository repo = (Repository)
this.getServletContext().getAttribute(Repository.class.getName());
Karsten
Am 12.08.2015 um 17:06 schrieb Chetan Mehrotra:
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 <k...@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