I'm searching for a way to access the Jackrabbit-Repository on JBoss-Portal-Server. In recent coding-examples for the JCR-API and reading the How-To-Articles on the Jackrabbit-Wiki it seems to get a repository instance from JNDI like that:
Context ctx = new InitialContext(); Repository repo = (Repository) ctx.lookup("java:/jcr/local");
Finally thease are my questions:
1) How to access jackrabbit on JBoss-Portal with the JCR API?
2) Do I have to install the RAR and creating the jcr-ds.xml description even if Jackrabbit comes along with the portal from scratch (deployed as SAR with a jboss-service.xml)?
3) What is the correct JNDI-Name to access Jackrabbit?
I'm using JBoss 2.7.0.B1 with JBoss 4.2.3 and MySQL 5.