11-28-2007 09:08 AM
<import resource="classpath:alfresco/jcr-context.xml" />
<!– load common properties –>
<bean id="jcr-rmi-properties" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="ignoreUnresolvablePlaceholders">
<value>true</value>
</property>
<property name="locations">
<list>
<value>classpath:alfresco/extension/jcr-rmi.properties</value>
</list>
</property>
</bean>
<!– /////////////////////////////////// –>
<!– –>
<!– rmi java content repository –>
<!– –>
<!– /////////////////////////////////// –>
<bean id="javaContentRepositoryRmiBinding"
class="org.alfresco.jcr.repository.JcrRmiBindingUtil"
init-method="bind">
<!– <ref bean="JCR.Repository"/> –>
<property name="jcrRepository">
<ref bean="threadBoundJcrRepository"/>
</property>
# ##################### #
# RMI JCR Configuration #
# ##################### #
rmi.jcr.binding.servername=localhost
#rmi.jcr.binding.port=1099
rmi.jcr.binding.port=50500
rmi.jcr.binding.name=javaContentRepository
rmi.jcr.resources.path=/alfresco/extension/messages/jcr-rmi-messages.properties
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!– /////////////////////////////////////// –>
<!– –>
<!– thread bound java content repository –>
<!– –>
<!– /////////////////////////////////////// –>
<bean id="threadBoundJcrRepository"
class="org.alfresco.jcr.repository.ThreadBoundJcrRepositoryImpl">
<property name="backingJcrRepository">
<ref bean="JCR.Repository"/>
</property>
</bean>
</beans>
11-28-2007 01:22 PM
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!– <import resource="classpath:alfresco/jcr-context.xml" /> –>
<!– load common properties –>
<bean id="jcr-rmi-properties" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="ignoreUnresolvablePlaceholders">
<value>true</value>
</property>
<property name="locations">
<list>
<value>classpath:alfresco/extension/jcr-rmi.properties</value>
</list>
</property>
</bean>
<!– /////////////////////////////////// –>
<!– –>
<!– rmi java content repository –>
<!– –>
<!– /////////////////////////////////// –>
<bean id="javaContentRepositoryRmiBinding"
class="org.alfresco.jcr.repository.JcrRmiBindingUtil"
init-method="bind">
<!– <ref bean="JCR.Repository"/> –>
<!– <ref bean="threadBoundJcrRepository"/> –>
<!– <ref bean="JCR.RemoteSafeRepository" /> –>
<property name="jcrRepository">
<ref bean="threadBoundJcrRepository" />
</property>
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.