Clustered EJB timers in JBoss EAP 6/7

Solution Verified - Updated -

Issue

  • There is a stateless EJB which has the javax.ejb.TimerService injected into it. When the JBoss cluster starts, A method needed to be triggered on this EJB 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content