Mercurial > hg > ismi-richfaces
diff src/main/resources/openmind-context.xml @ 80:5a2146dea778
log4j properties for transaction logger. destroy method for Quartz scheduler bean.
author | casties |
---|---|
date | Fri, 26 Aug 2016 11:54:09 +0200 |
parents | bba950221e71 |
children | d2cee1040062 |
line wrap: on
line diff
--- a/src/main/resources/openmind-context.xml Thu Aug 04 19:26:17 2016 +0200 +++ b/src/main/resources/openmind-context.xml Fri Aug 26 11:54:09 2016 +0200 @@ -41,36 +41,35 @@ </bean> - <!-- Scheduler for Date-Based Mailings - + <!-- Scheduler for Date-Based Mailings --> <bean id="scheduling" class="org.mpi.openmind.scheduling.utils.Scheduling"> <property name="persistenceService" ref="persistenceService"/> <property name="configurationService" ref="configurationService"/> - </bean> --> + </bean> - <!-- <bean id="schedulingJobs" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"> + <bean id="schedulingJobs" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"> <property name="targetObject" ref="scheduling"/> - <property name="targetMethod" value="dailyKickOff"/> --> + <property name="targetMethod" value="dailyKickOff"/> <!-- property name="concurrent" value="false"/ --> - <!-- </bean> --> + </bean> - <!-- <bean id="schedulingCronTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean"> - <property name="jobDetail" ref="schedulingJobs"/> --> + <bean id="schedulingCronTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean"> + <property name="jobDetail" ref="schedulingJobs"/> <!-- daily 6 AM --> + <property name="cronExpression" value="0 0 6 * * ?"/> + <!-- every hour --> + <!-- <property name="cronExpression" value="0 0 * * * ?"/> --> + <!-- every 10 minutes --> + <!-- <property name="cronExpression" value="0 0/10 * * * ?"/> --> - <!-- <property name="cronExpression" value="0 0 6 * * ?"/> --> - <!-- - every 5 minutes - <property name="cronExpression" value="0 0/5 * * * ?"/> - --> + </bean> - <!-- </bean> --> - - <!-- <bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean"> + <bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean" + destroy-method="destroy"> <property name="triggers"> <list> <ref bean="schedulingCronTrigger"/> </list> </property> </bean> - --> </beans> \ No newline at end of file