Configure a Timer Service

 

Procedure

  1. Open the administrative console.

  2. Click Servers >Application Servers > servername > EJB Container Settings > EJB timer service settings. The Timer Service settings panel appears.

  3. If you want to use the internal, or pre-configured scheduler instance, click the Use internal EJB timer service scheduler instance radio button. If you choose not to change the default settings, this instance is associated with a Cloudscape database. If you choose to customize the pre-configured instance:

    1. To change the data source (use any supported database, such as DB2 or Oracle) enter your Data source JNDI name.

    2. Enter your chosen Data source alias.

    3. Enter your chosen Table prefix if you want to have several server processes use the same database, but different tables.

    4. Enter a Poll interval value in milliseconds.

    5. If you want more timers to execute concurrently, enter a new value for Number of timer threads.

    For more information about the fields, see EJB Timer Service settings

  4. If you want to configure your own scheduler instance instead of using the pre-configured internal one, click the Use custom scheduler instance radio button. Some reasons you might want to use your own instance are:

    • to change scheduler service configuration options not available for customization on this panel

    • to keep EJB Timer tasks in the same database tables as your other tasks

    • you are running in a Clustered environment, and wish to have a single scheduler instance handle all of the EJB Timers for the cluster. This way, an ejbTimer Task created on one cluster member can execute on a different cluster member.

    To use your own instance, :

    1. Configure a scheduler instance through the Scheduler Service graphical user interface. See Using schedulers for information on how to do this.

    2. Select your Scheduler JNDI name from the list.

  5. Click Apply.

  6. Click OK.

 

See also


Configuring a Timer Service for network deployment
Example: Timer Service
EJB Timer Service settings