Hello all, I'm somewhat new to JCR but have been using Java for a few years. I am having trouble finding information that will help me make use of the JCR interface and was hoping someone could point me in the right direction.
Basically what I want to do is access Alfresco using JSP pages from outside the alfresco.war application. I intend on deploying, to the same server and the same JBoss instance, a second web application with a different context path.
So let's say I have alfresco.war under the context /alfresco and I have mywebapp.war under the context /mywebapp. I was looking for the documentation that details how I can create a JSP as /mywebapp/index.jsp and having that JSP display content from Alfresco using the Alfresco content repository tag library.
however it seemed to go somewhat unanswered. I've also read the documentation at http://wiki.alfresco.com/wiki/Introducing_the_Alfresco_Java_Content_Repository_API but it seems to document the process of access the repository when a JSP file is created from within the Alfresco web application (i.e., the JSP would be /alfresco/faces/jsp/mypage.jsp instead of /mywebapp/index.jsp)
When using JCR outside the Alfresco web context, do I have to use JCR-RMI/Web Services or can I use the standard JCR?
David, Thanks for the prompt answer. So if I understand correctly, I'll need to setup the RMI or WS anytime I wrote code that is not part of the 'alfresco.war' directory (I'm running from an exploded WAR), even if my application resides inside the same JBoss instance, but just in another context? There is no way to make JCR work by setting cross-context to true?