Method with @Schedule is executed repeatedly before daylight-saving time in JBoss EAP 7.1
Issue
A method annotated with @Schedule is executed repeatedly just before entering the day of daylight-saving time. Example:
@Startup
@Singleton
public class TestBean {
private static final Logger logger = LogManager.getLogManager().getLogger(TestBean.class.getName());
@Schedule(second = "*/10", minute = "*", hour = "*", persistent = false)
void scheduledUpdate() {
logger.info("Time is up!");
}
}
On the server.log the following log will appear repeatedly:
2018-03-24 23:59:50,014 INFO [TestBean] (EJB default - 3) Time is up!
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.