Tasks
Scheduling tasks
WAS provides a Scheduler service that can be used to schedule actions to happen with the following frequencies:
Only once
Some time in the future
On a recurring basis
At regular intervals
It can also receive notifications about task activity. Scheduler tasks can be stored in a relational database and can be executed for indefinite repetitions and long time periods. Scheduler tasks can be EJB-based tasks or they can be triggered using JMS.
The Scheduler service can be a tool in workload management by scheduling maintenance tasks such as backups, cleanups, or batch processing during off-peak hours.
When a task runs, it is executed in the work manager associated with the scheduler instance. We can control the number of actively running tasks at a given time by configuring schedulers with a specific work manager. The number of tasks that can run concurrently is set by the Number of alarm threads parameter on the work manager.