batch job changes

This commit is contained in:
John Woodlock
2013-06-24 10:08:07 +01:00
parent 7f2b5ee810
commit 876bca05d2
2 changed files with 33 additions and 19 deletions
@@ -6,11 +6,6 @@
You can obtain one at http://mozilla.org/MPL/2.0/. You can obtain one at http://mozilla.org/MPL/2.0/.
--> -->
<!--
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this file,
You can obtain one at http://mozilla.org/MPL/2.0/.
-->
<beans xmlns="http://www.springframework.org/schema/beans" <beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
@@ -23,6 +18,10 @@
class="org.mifosplatform.scheduledjobs.UpdateLoanArrearsAgeingScheduledJob"> class="org.mifosplatform.scheduledjobs.UpdateLoanArrearsAgeingScheduledJob">
<constructor-arg ref="scheduledJobRunnerService" /> <constructor-arg ref="scheduledJobRunnerService" />
</bean> </bean>
<bean id="updateLoanPaidInAdvanceScheduledJob"
class="org.mifosplatform.scheduledjobs.UpdateLoanPaidInAdvanceScheduledJob">
<constructor-arg ref="scheduledJobRunnerService" />
</bean>
<bean id="applyAnnualFeeForSavingsScheduledJob" <bean id="applyAnnualFeeForSavingsScheduledJob"
class="org.mifosplatform.scheduledjobs.ApplyAnnualFeeForSavingsScheduledJob"> class="org.mifosplatform.scheduledjobs.ApplyAnnualFeeForSavingsScheduledJob">
<constructor-arg ref="scheduledJobRunnerService" /> <constructor-arg ref="scheduledJobRunnerService" />
@@ -44,6 +43,14 @@
<property name="concurrent" value="false" /> <property name="concurrent" value="false" />
</bean> </bean>
<bean id="updateLoanPaidInAdvanceJobDetail"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="group" value="mifosJobs" />
<property name="targetObject" ref="updateLoanPaidInAdvanceScheduledJob" />
<property name="targetMethod" value="execute" />
<property name="concurrent" value="false" />
</bean>
<bean id="applyAnnualFeeForSavingsJobDetail" <bean id="applyAnnualFeeForSavingsJobDetail"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"> class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="group" value="mifosJobs" /> <property name="group" value="mifosJobs" />
@@ -61,7 +68,13 @@
<bean id="updateLoanArrearsAgeingJobDetailCronTrigger" <bean id="updateLoanArrearsAgeingJobDetailCronTrigger"
class="org.springframework.scheduling.quartz.CronTriggerFactoryBean"> class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="updateLoanArrearsAgeingJobDetail" /> <property name="jobDetail" ref="updateLoanArrearsAgeingJobDetail" />
<property name="cronExpression" value="0 10 22 1/1 * ? *" /> <property name="cronExpression" value="0 1 0 1/1 * ? *" />
</bean>
<bean id="updateLoanPaidInAdvanceJobDetailCronTrigger"
class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="updateLoanPaidInAdvanceJobDetail" />
<property name="cronExpression" value="0 5 0 1/1 * ? *" />
</bean> </bean>
<bean id="applyAnnualFeeForSavingsJobDetailCronTrigger" <bean id="applyAnnualFeeForSavingsJobDetailCronTrigger"
@@ -76,6 +89,7 @@
<list> <list>
<ref bean="updateLoanSummariesJobCronTrigger" /> <ref bean="updateLoanSummariesJobCronTrigger" />
<ref bean="updateLoanArrearsAgeingJobDetailCronTrigger" /> <ref bean="updateLoanArrearsAgeingJobDetailCronTrigger" />
<ref bean="updateLoanPaidInAdvanceJobDetailCronTrigger" />
<ref bean="applyAnnualFeeForSavingsJobDetailCronTrigger" /> <ref bean="applyAnnualFeeForSavingsJobDetailCronTrigger" />
</list> </list>
</property> </property>