AnsweredAssumed Answered

JCR use from outside Alfresco.war

Question asked by jlspies1 on Nov 7, 2006
Latest reply on Nov 8, 2006 by jlspies1
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.

I've read the following forum post: http://forums.alfresco.com/viewtopic.php?t=907&highlight=context

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?

Outcomes