Blog này chứa những kiến thức mà mình lượm nhặt được

RESTful Timers in JavaEE

The EJB @Schedule annotation comes in handy in case you need to create timers automatically. One can use cron-like expression to configure the appropriate schedule. If you need more flexibility, the good old TimerService works like a charm.