Steps for this task
The scheduler API supports different implementations of the TaskInfo interface, each of which can be used to schedule a particular type of work. Refer to one of the following topics for details:
Note: Create and manipulate scheduled tasks through the Scheduler interface is only supported from within the EJB container or Web container (enterprise beans or servlets). Looking up and using a configured scheduler from a J2EE application client container is not supported.