JCR JNDI adapter

cancel
Showing results for 
Search instead for 
Did you mean: 

JCR JNDI adapter

resplin
Intermediate
0 0 954

Obsolete Pages{{Obsolete}}

The official documentation is at: http://docs.alfresco.com



Community Contribution Ideas


Project Description


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


Project Requirements/Objectives


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


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>





 <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>

Initial Project Scope


TODO...


Discussion of Design/Implementation Approach


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