In this tutorial we are going to see how you can use Timer and TimerTask classes of the java.util package in order to schedule the execution of a certain process. The Timer class uses several flexible methods to make it possible to to schedule a task to be executed at a specific time, for once or for several times with intervals ...
Read More »Home »
Use Timer service example
This is an example of how to use the javax.ejb.TimerService in an EJB. The TimerService interface provides enterprise bean components with access to the container-provided Timer Service. The EJB Timer Service allows stateless session beans, singleton session beans, message-driven beans, and EJB 2.x entity beans to be registered for timer callback events at a specified time, after a specified elapsed ...
Read More »