Managing automatically created EJB persistent timers
Applications or modules use the javax.ejb.Schedule annotation or the schedule element in the XML deployment descriptor to instruct the application server to automatically create EJB timers. An MBean is provided for managing the creation of the automatically created EJB persistent timers.
About this task
The Liberty server creates the EJB automatic persistent timers for an application the first time the application is started within the server process. The timers, and an indication that they have been created, are stored in the database associated with the PersistentExecutor, configured for the EJB timer service. Once created, the automatically created persistent timers for an application will not be created again until an action is taken to specifically clear the indication that they have been created from the database. Even if all of the automatically created timers for an application are removed, the Liberty server will not create any of them again until the indication that they have been created is also removed.
Clearing the indication that the automatically created timers have been created may be done by either manually clearing the timer database or using the EJB timer service MBean. The EJB timer service MBean can be used either programmatically or through a tool such as JConsole. The interface for the EJB timer service MBean is: com.ibm.websphere.ejbcontainer.mbean.EJBPersistentTimerServiceMXBean.