Clustered EJB timers in JBoss EAP 6

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)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.