The useful method:
from the class
getTimers() throws IllegalStateException, EJBException
javax.ejb.TimerServicereturns all javax.ejb.Timer instances from the module. The EJB 3.2 specification (Java EE 7) defines the functionality as:
The getAllTimers method returns active timers associated with the beans in the same module in which the caller bean is packaged. These include all active persistent timers regardless of the number of JVMs across which the container is distributed, and active non-persistent timers created in the same JVM as the executing method. Timers returned by this method include both the programmatically-cre- ated timers and the automatically-created timers.Page 341, Enterprise JavaBeans 3.2 Specification (http://www.jcp.org/en/jsr/detail?id=345)
Now we can easily build a timer management solution, with nothing but vanilla EJB 3.2. KISS -> Java EE 7 :-)
See you at Java EE Workshops at MUC Airport!
NEW MUC Airport Workshop: Migrating Java Client (Swing / Java FX) to Web Standards