Class TimerBean

  • All Implemented Interfaces:
    TimerLocal

    public class TimerBean
    extends Object
    implements TimerLocal
    TimerBean is a facade for the persistent state of an EJB Timer. It is part of the EJB container and is implemented using Java Persistence API. The standard JPA behavior is useful in implementing the transactional properties of EJB timers. When an EJB timer is created by an application, it is not eligible for expiration until the transaction commits. Likewise, if a timer is cancelled and the transaction rolls back, the timer must be reactivated. To accomplish this, TimerBean registers callbacks with the transaction manager and interacts with the EJBTimerService accordingly.
    Author:
    Kenneth Saks, Marina Vatkina