[jboss-user] [JBoss Portal] - Accessing Jackrabbit-Repository

DarthTrader do-not-reply at jboss.com
Thu Sep 4 04:23:39 EDT 2008


Hi,

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.

Thanks in advance
DT




View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4174200#4174200

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4174200



More information about the jboss-user mailing list