• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown

ScheduledTimerTask help needed

Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 id="ediPollingScheduledTask" class="org.springframework.scheduling.timer.ScheduledTimerTask">
<property name="delay" value="0" />
<property name="period" value="100000" />
<property name="timerTask" ref="ediPollingTimerTask" />

<bean id="timerFactory" class="org.springframework.scheduling.timer.TimerFactoryBean">
<property name="scheduledTimerTasks">
<ref bean="loadPlanScheduledTask" />
<ref bean="ediPollingScheduledTask" />

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.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic