Configure schedulers

 

Before you begin

Before your application can make use of the scheduler service, configure a scheduler using the administrative console, configuration service or scripting. Conceptually, a scheduler is similar to a data source in that specify various configuration attributes, including a JNDI name where the instance is bound. Once defined, an application using the Scheduler API or WASScheduler MBean can look up the scheduler object and call various methods to manage tasks.

 

Overview

The scheduler service is always enabled. In previous versions of the product, the scheduler service could be disabled using the administrative console or configuration service. Scheduler service configuration objects are present in the configuration service, but the enabled attribute is ignored.

To achieve high availability, one can configure a duplicate scheduler on each server in a cluster, or create a scheduler at the cluster scope. For example, each server that contains a scheduler with the JNDI name sched/MyScheduler, with the same database configuration parameters (data source and table prefix) behaves as a single clustered scheduler. Each server in the scheduler cluster has a running scheduler instance, which increases the number of poll daemons and allows automatic failover. For more information on creating clusters for high availability, see the article, "WebSphere Enterprise Scheduler planning and administration guide."

Typically, create schedulers at the server or cluster scope. Scheduler poll daemons run in each server within the configured scope, which means that if you create a scheduler at the node or cell scope, the scheduler poll daemon can attempt to run tasks on any of the servers in the node or cell. If applications are not mapped uniformly over each server in that scope, the scheduler might not run tasks correctly. Since applications are mapped to servers and clusters, there is less chance for error and less competition between daemons to run tasks.

Depending on your preferred method of configuration, select one of the following steps to configure schedulers.

 

Procedure

  1. Configuring schedulers using the administrative console.

  2. Configuring schedulers using Java Management Extensions API (JMX).

 

Result

A scheduler is configured and ready to use.

 

See also


Configuring schedulers using the administrative console
Configuring schedulers using Java Management Extensions
Creating a scheduler resource reference

 

Related Tasks


Developing and scheduling tasks
Interoperating with schedulers

 

Related Information


WebSphere Enterprise Scheduler planning and administration guide