Mar 25th, 2009, 03:49 PM
Possible for ScheduledTimerTask to execute at specified times instead of intervals?
I need for some tasks to execute at specified times of the day, week or month. Just like a unix cron job. Is this possible in Spring, I mean does this functionality exist?
Currently, I can only specify intervals of time between executions of the task. I guess an easy way to get my desired functionality is to set those intervals very small and just check in code if it's during the time I want. But this isn't pretty at all, not easily changeable and I have to be very careful about missing an execution or executing more than once...
Tags for this Thread