posted 11 years ago
Hi All,
I have created the two timer task as
<bean id="loadPlanScheduledTask" class="org.springframework.scheduling.timer.ScheduledTimerTask">
<property name="delay" value="0" />
<property name="period" value="180000" />
<property name="timerTask" ref="loadPlanTimerTask" />
</bean>
<bean id="ediPollingScheduledTask" class="org.springframework.scheduling.timer.ScheduledTimerTask">
<property name="delay" value="0" />
<property name="period" value="100000" />
<property name="timerTask" ref="ediPollingTimerTask" />
</bean>
<bean id="timerFactory" class="org.springframework.scheduling.timer.TimerFactoryBean">
<property name="scheduledTimerTasks">
<list>
<ref bean="loadPlanScheduledTask" />
<ref bean="ediPollingScheduledTask" />
</list>
</property>
</bean>
I have configure the loadPlanScheduledTask for 3 min of interval and ediPollingScheduledTask for 100 sec interval.
My problem is when the loadPlanScheduledTask find some file and start loading the file it will take app. 10 min to load data from file.
If file size is large it take 30 min.
For this particular interval the ediPollingScheduledTask is not executed even after 100 sec.It stop running.It resumes after execution of loadPlanScheduledTask task.
Is their some thing wrong with configuration.
Thanks,
Amol.