JCR JNDI adapter

From AlfrescoWiki

Jump to: navigation, search

Contents

[edit] Project Description

Mechanism for exporting the Alfresco JCR interface to JNDI so it can be consumed by other applications

[edit] Project Requirements/Objectives

There are several types of images that can be created for serving different purposes:

[edit] Common Requirements

 <Resource name="jcr/baseRepository" 
           scope="Shareable"
           auth="Container" 
           type="javax.jcr.Repository"
           factory="org.alfresco.jcr.repository.JndiJcrObjectFactory"
           jcrRepositoryName="baseAlfrescoRepository"/>
 <ResourceLink global="jcr/baseRepository" name="jcr/baseRepository" type="javax.jcr.Repository"/> 


In JBOSS in Service XML

   <mbean code="org.alfresco.jcr.repository.JBossJndiJcr" 
          name="baseJcr.alfresc:service=JBossJndiJcr">
       <attribute name="JndiName">jcr/baseRepository</attribute>
       <attribute name="JcrRepositoryName">baseAlfrescoRepository</attribute>
       <depends>jboss:service=Naming</depends>
   </mbean>



 <?xml version='1.0' encoding='UTF-8'?>
 <!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
 
 <beans>
 
   <bean id="baseRepositoryJcrToJndiAdapter"
         class="org.alfresco.jcr.repository.JcrToJndiAdapter" init-method="bindRepository">
 
     <property name="actualJcrRepository">
       <ref bean="JCR.Repository"/>
     </property>
 
     <property name="repositoryMoniker">
       <value>baseAlfrescoRepository</value>
     </property>
   </bean>
 </beans>

[edit] Initial Project Scope

TODO...

[edit] Discussion of Design/Implementation Approach

[edit] Comments

Please use the following format:

Comment Title

<Comment Content>

<Your Name and/or contact info>


Sample Comment 1

This is a sample comment...

Joe Bloggs



Sample Comment 2

This is another sample comment...

Joe Bloggs