users@glassfish.java.net

TimerService rescheduling periodic timer

From: <glassfish_at_javadesktop.org>
Date: Thu, 10 Jul 2008 11:01:14 PDT

Hello,

I have a timer bean that performs some tasks. However, I noticed if it can not execute at the given time, I notice during next application server start, it will try to reschedule.

I create it with timerService.createTimer(0, interval, timerName);

where 0 is initial duration, and interval is interval.

The api documentation talks about rescheduling on method createTimer(startdate, interval, timerName)

but not on createTimer(initial, interval, timerName) like I used. why is it rescheduling, what can I do to avoid missed rescheduling.

Best Regards,
-C.B.
[Message sent by forum member 'segfault2007' (segfault2007)]

http://forums.java.net/jive/thread.jspa?messageID=285752