AnsweredAssumed Answered

Inbound Replication URGENT PLEASE

Question asked by thaneshk on Jun 19, 2006
Latest reply on Dec 5, 2011 by kamal1387
Hi,

I have changed the replicating-content-services-context.xml file in such a way



<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<beans>
   <!–
    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="backupContentStore"
         class="org.alfresco.repo.content.filestore.FileContentStore">
      <constructor-arg>
         <value>C:/Store</value>
      </constructor-arg>
   </bean>

   <bean id="primaryContentStoreBackupComponent"
         class="org.alfresco.repo.content.replication.ContentStoreReplicator"
         depends-on="fileContentStore, backupContentStore"
         init-method="start">
      <!– content source –>
      <property name="sourceStore">
          <ref bean="fileContentStore" />
      </property>
      <!– content target –>
      <property name="targetStore">
           <ref bean="backupContentStore" />
      </property>
      <!– set to 'false' to perform a single pass before quitting –>
      <property name="runContinuously">
          <value>true</value>
      </property>
      <!– time between passes –>
      <property name="waitTime">
          <value>60</value>
      </property>
   </bean>

   <bean id="replicatingContentStore"
         class="org.alfresco.repo.content.replication.ReplicatingContentStore" >
      <!– the preferred store for reads and writes –>
      <property name="primaryStore">
         <ref bean="fileContentStore" />
      </property>
      <!– example of possible secondary store configuration –>
      <property name="secondaryStores">
         <list>
            <ref bean="backupContentStore" />
         </list>
      </property>
      <!– enable content missing from the primary store to be pulled in from the secondary stores –>
      <property name="inbound">
         <value>true</value>
      </property>
      <!– enable replication from the primary to the secondary stores –>
      <property name="outbound">
         <value>true</value>
      </property>
      <!– this is required if outbound replication is active, otherwise not –>
      <property name="transactionService">
         <ref bean="transactionComponent" />
      </property>
        </bean>

</beans>


How is it possible for me to check whether inbound replication works on the Alfresco web application. I am just basically using my local machine that runs on Windows for POC purposes.

Should inbound replication retrieve content from a secondary store if it does not exist in the primary store? I am guessing this is what its supposed to do and should also work when testing a deleted peiece of content from primary store.

Also was wondering whether any configruation needs to take place to make this replication work?

Cheers

Outcomes