A.5. Timer services

The proposed timer service is simple, but likely to be very useful. Any EJB can register itself with the container’s timer service, provided it implements the TimedObject interface. This interface exposes one method: ejbTimeout. When the timer reaches its set time or interval, the container calls this method; the EJB can do then do whatever it needs.

Get Applied Enterprise JavaBeans™ Technology now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.