I am trying use the JCR-RMI API to access the repository.
I followed the following steps.
1) Downloaded the jcr-rmi-alfreco.zip from the URL http://issues.alfresco.com/browse/AR-1131 2) Removed the jcr-1.0.jar from the alfresco.war. 3) Added the jcr-1.0.jar and jcr-rmi-1-impl-classes.jar in jboss/server/default/lib 4) Added the following properties mentioned in then repository.properties provided in the jcr-rmi-alfresco.jar to the repository.properties in the alfresco.war
5) Added the file jcr-rmi-context.xml file into the alfresco\extension folder. 6) Commented out the <import resource="classpath:alfresco/application-context.xml"/> in the jcr-context.xml file 7) Added the following in JBoss jboss-service.xml
I never got JNDI-JCR bridge working with JBoss. Test application worked somehow giving right results, but throwing exceptions. Tomcat worked fine, and I had quite a bunch of experts helping with JBoss, so I really think there might be some real blocker on this. Anyway, I didn't really want to debug it lot more, so I just dropped it.