dcsimg
Timer run tasks at incorrect time!
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Julia_Huang
Posted On:   Thursday, December 26, 2002 09:14 AM

I have a serious problem...
There is a program which will schedule several tasks by Timer,
these tasks should be executed every day.
For example, one always runs at 7:30, another runs at 15:00.
But after I startup the Tomcat,
even it's 20:00 right now,
both tasks start running just after startup.
How can I make them just run at accurate time?

Re: Timer run tasks at incorrect time!

Posted By:   Gautam_Marwaha  
Posted On:   Thursday, December 26, 2002 08:58 PM

I have found java.util.Timer to work as expected. Use one of the scheduleAtFixedRate() methods of Timer class if you are looking for periodic tasks to be run at specified times. Or post your code.
About | Sitemap | Contact