mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Also update ScheduledPersistedActionService to fetch the persisted folder in a cleaner way, and start on tests git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21844 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
48 lines
2.0 KiB
XML
48 lines
2.0 KiB
XML
<?xml version='1.0' encoding='UTF-8'?>
|
|
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
|
|
|
|
<beans>
|
|
<bean id="resourceFinder" class="org.alfresco.util.ResourceFinder"/>
|
|
|
|
<bean id="schedulerResources" factory-bean="resourceFinder" factory-method="getResources">
|
|
<constructor-arg>
|
|
<list>
|
|
<value>classpath:alfresco/domain/quartz.properties</value>
|
|
<value>classpath*:alfresco/enterprise/*-quartz.properties</value>
|
|
<value>classpath*:alfresco/extension/*-quartz.properties</value>
|
|
</list>
|
|
</constructor-arg>
|
|
</bean>
|
|
|
|
<bean id="schedulerProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean">
|
|
<property name="locations">
|
|
<ref bean="schedulerResources" />
|
|
</property>
|
|
</bean>
|
|
|
|
<!-- Task scheduler -->
|
|
<!-- Triggers should not appear here - the scheduler should be injected into the trigger definition -->
|
|
<!-- This bean should not need to apear else where in extension configuration -->
|
|
<bean id="schedulerFactory" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
|
|
<property name="waitForJobsToCompleteOnShutdown">
|
|
<value>true</value>
|
|
</property>
|
|
<property name="schedulerFactoryClass">
|
|
<value>org.alfresco.repo.scheduler.AlfrescoSchedulerFactory</value>
|
|
</property>
|
|
<property name="jobFactory">
|
|
<bean class="org.alfresco.repo.scheduler.AlfrescoJobFactory" />
|
|
</property>
|
|
<property name="quartzProperties">
|
|
<ref bean="schedulerProperties" />
|
|
</property>
|
|
<property name="schedulerName">
|
|
<value>DefaultScheduler</value>
|
|
</property>
|
|
<!-- Do not auto start the scheduler - this is done at the end of the bootstrap process -->
|
|
<property name="autoStartup">
|
|
<value>false</value>
|
|
</property>
|
|
</bean>
|
|
</beans>
|