06-19-2006 07:48 AM
<?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>
06-20-2006 10:11 AM
06-21-2006 06:13 AM
<?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="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>
06-21-2006 06:26 AM
<configRoot>/alfresco/content-services-context.xml
The contentService bean's store property points to the store to be used by the server. The default store is a FileContentStore.
06-21-2006 06:59 AM
06-21-2006 10:24 AM
06-21-2006 01:53 PM
<bean id="contentService" class="org.alfresco.repo.content.RoutingContentService" init-method="init">
<property name="transactionService">
<ref bean="transactionComponent" />
</property>
<property name="dictionaryService">
<ref bean="dictionaryService" />
</property>
<property name="nodeService">
<ref bean="nodeService" />
</property>
<property name="transformerRegistry">
<ref bean="contentTransformerRegistry" />
</property>
<property name="store">
<ref bean="replicatingContentStore" />
</property>
<property name="policyComponent">
<ref bean="policyComponent" />
</property>
</bean>
<?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="fileContentStore" class="org.alfresco.repo.content.filestore.FileContentStore">
<constructor-arg>
<value>${dir.contentstore}/primary</value>
</constructor-arg>
</bean>
<bean id="backupContentStore"
class="org.alfresco.repo.content.filestore.FileContentStore">
<constructor-arg>
<value>${dir.contentstore}/secondary</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>false</value>
</property>
<!– this is required if outbound replication is active, otherwise not –>
</bean>
</beans>
12-05-2011 04:48 AM
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.