[EJB 3.0] - EJB timers ignoring start date
by pdhaigh
Hi,
I am using the EJB timer scheduler for some recurring tasks in my application. There are 3 of them, designed to run overnight, every night (i.e. every 24hours).
All works well when I deploy the application, and on subsequent deployments. However, when I restart JBoss, the timers run every 24 hours after the RESTART, rather than the proper scheduled time.
My timer table looks like:
select TIMERID, TARGETID, INITIALDATE, TIMERINTERVAL from TIMERS;
| +---------------+-------------------------------------------------------------------------------------------------------+---------------------+---------------+
| | TIMERID | TARGETID | INITIALDATE | TIMERINTERVAL |
| +---------------+-------------------------------------------------------------------------------------------------------+---------------------+---------------+
| | 1215864788521 | [target=jboss.j2ee:service=EJB3,ear=wildfrontiers.ear,jar=jboss-seam.jar,name=TimerServiceDispatcher] | 2008-07-09 02:00:06 | 86400000 |
| | 1215864788522 | [target=jboss.j2ee:service=EJB3,ear=wildfrontiers.ear,jar=jboss-seam.jar,name=TimerServiceDispatcher] | 2008-07-09 01:05:06 | 86400000 |
| | 1215864788523 | [target=jboss.j2ee:service=EJB3,ear=wildfrontiers.ear,jar=jboss-seam.jar,name=TimerServiceDispatcher] | 2008-07-09 01:00:06 | 86400000 |
| +---------------+-------------------------------------------------------------------------------------------------------+---------------------+---------------+
|
So, it I restart JBoss at 6pm, July 12th, the tasks will next run at 6pm July 13th, rather than the expected 1am, 1.05am and 2am 13th July.
Any help would be gratefully received!
cheers
phil
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4164160#4164160
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4164160
17 years, 11 months
Delivery Status Notification (Failure)
by postmaster@lists.jboss.org
This is an automatically generated Delivery Status Notification.
Unable to deliver message to the following recipients, because the message was forwarded more than the maximum allowed times. This could indicate a mail loop.
medvedeva.natalya(a)technodom.kz
17 years, 11 months