Timer created using the EJB TimerService is creating a wrong first execution date/time in JBoss EAP 6
Issue
If a Timer is created using the EJB TimerService a wrong first execution date/time is calculated
A new timer created at this time Mon Jan 18 09:22:35 GMT+1 2016 with the following parameters:
ScheduleExpression[second=0 minute=0/5 hour=20-22 dayOfWeek=* dayOfMonth=* month=* year=* start=Mon Jan 18 09:45:00 GMT+1 2016]
The first schedule should be :
Mon Jan 18 20:00:00 GMT+1 2016
but is calculated as :
Mon Jan 18 20:45:00 GMT+1 2016
The minutes are not correctly set according to the schedule.
This happen for seconds/minutes if the ScheduleExpression limit the range and the start date is somewhat outside of the possible timeout range.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.