Clustered EJB timers in JBoss EAP 6/7
Issue
-
There is a
stateless EJB
which has thejavax.ejb.TimerService
injected into it. When theJBoss
cluster starts, A method needed to be triggered on thisEJB
so that it can schedule a repeating timer. -
The timers are needed to be resilient and tolerant of failover.
-
Updating Timer in a cluster using a singleton service.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.x
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.