1:-
Repository replication between two different alfresco enterprise can be
done with the help of common network file system(NFS).
2:- Create new file in alfresco/tomcat.shared/classes/alfresco/extension name replicating-content-services-context.xml.
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!--
For a content cache, see <a href="http://wiki.alfresco.com/wiki/CachingContentStore">CachingContentStore</a>
-->
<!--
This file is not included in the application context by default.
If you include this file, please ensure that you review the sample
beans contained here.
-->
<bean id="localDriveContentStore" class="org.alfresco.repo.content.filestore.FileContentStore">
<constructor-arg>
<value>/home/sourabh/alfresco-4.0.0/alf_data/contentstore</value>
<!--<value>/var/alfresco/contentstore</value>-->
<!--<value>/development/java_arch/Alfresco/alf_data/contentstore</value>-->
</constructor-arg>
</bean>
<bean id="networkContentStore" class="org.alfresco.repo.content.filestore.FileContentStore">
<constructor-arg>
<value>/development/java_arch/Alfresco/alf_data/contentstore</value>
<!--<value>/share/alfresco/contentstore</value>-->
<!--<value>/home/sourabh/alfresco-4.0.0/alf_data/contentstore</value>-->
</constructor-arg>
</bean>
<bean id="fileContentStore" class="org.alfresco.repo.content.replication.ReplicatingContentStore" >
<property name="primaryStore">
<ref bean="localDriveContentStore" />
</property>
<property name="secondaryStores">
<list>
<ref bean="networkContentStore" />
</list>
</property>
<property name="inbound">
<value>true</value>
</property>
<property name="outbound">
<value>true</value>
</property>
<property name="retryingTransactionHelper">
<ref bean="retryingTransactionHelper"/>
</property>
</bean>
</beans>
3:- Secondary content store is the Network File System(NFS).
4:- Restart the alfresco server on both the machine who replicate data(replication can be done for more than two machines).
5:- Before replicating repository the database must be replicated between machines.
6:- See the magic.
2:- Create new file in alfresco/tomcat.shared/classes/alfresco/extension name replicating-content-services-context.xml.
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!--
For a content cache, see <a href="http://wiki.alfresco.com/wiki/CachingContentStore">CachingContentStore</a>
-->
<!--
This file is not included in the application context by default.
If you include this file, please ensure that you review the sample
beans contained here.
-->
<bean id="localDriveContentStore" class="org.alfresco.repo.content.filestore.FileContentStore">
<constructor-arg>
<value>/home/sourabh/alfresco-4.0.0/alf_data/contentstore</value>
<!--<value>/var/alfresco/contentstore</value>-->
<!--<value>/development/java_arch/Alfresco/alf_data/contentstore</value>-->
</constructor-arg>
</bean>
<bean id="networkContentStore" class="org.alfresco.repo.content.filestore.FileContentStore">
<constructor-arg>
<value>/development/java_arch/Alfresco/alf_data/contentstore</value>
<!--<value>/share/alfresco/contentstore</value>-->
<!--<value>/home/sourabh/alfresco-4.0.0/alf_data/contentstore</value>-->
</constructor-arg>
</bean>
<bean id="fileContentStore" class="org.alfresco.repo.content.replication.ReplicatingContentStore" >
<property name="primaryStore">
<ref bean="localDriveContentStore" />
</property>
<property name="secondaryStores">
<list>
<ref bean="networkContentStore" />
</list>
</property>
<property name="inbound">
<value>true</value>
</property>
<property name="outbound">
<value>true</value>
</property>
<property name="retryingTransactionHelper">
<ref bean="retryingTransactionHelper"/>
</property>
</bean>
</beans>
3:- Secondary content store is the Network File System(NFS).
4:- Restart the alfresco server on both the machine who replicate data(replication can be done for more than two machines).
5:- Before replicating repository the database must be replicated between machines.
6:- See the magic.
No comments:
Post a Comment