posted 19 years ago
Hi, I am using Timer + TimerTask for scheduling purposes. I want to schedule a task and then re-schedule it.. i.e I schedule "xyz" for March 14 4:00pm; now after 4:00pm, I want to re-schedule the same task "xyz" for March 15th 5:00pm.
The method I am using for rescheduling it is: scheduleAtFixedRate.
I can schedule the task for march 14 4:00pm. However, whenever I use "scheduleAtFixedRate" to reschedule the task, it throws an exception: Task already scheduled or cancelled. How do I get around this? How can I delete a task so that I can reschedule "xyz"?
I've been at it for the past 1 week.. just cant figure it out.. any help would be appreciated..
Thanks
Gautam
[ March 27, 2006: Message edited by: Gautam Bhutani ]