Configuring a Timer Service

To configure a timer service, follow these steps.

Procedure

  1. Open the administrative console.
  2. Click Servers > Application Servers > server > EJB Container Settings > EJB timer service settings. The Timer Service settings panel is displayed.
  3. Choose the type of scheduler instance to use.
    • If you want to use the internal, or pre-configured, scheduler instance, select Use internal EJB timer service scheduler instance. 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, you can change the data source to any supported database, such as DB2 or Oracle. Enter data source information for the following fields:
      • Data source JNDI name
      • Data source alias
      • Table prefix, if you want to have several server processes use the same database, but different tables.
      • Poll interval, in milliseconds.
      • Number of timer threads, if you want more timers to execute concurrently than the default.
      For more information about the fields, see EJB Timer Service settings.
  4. Optional: If you want to configure your own scheduler instance instead of using the pre-configured internal one, select Use custom scheduler instance. Use your own instance if you want to:
    • Change scheduler service configuration options not available for customization on this panel
    • Keep tasks for EJB timers in the same database tables as your other tasks
    • Running in a clustered environment, and you want 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 be executed on a different cluster member.
    1. To use your own instance, configure a scheduler instance through the Scheduler Service interface. See Using schedulers for information on how to do this.
    2. Select your Scheduler JNDI name from the list.
  5. [Fix Pack 29 or later] Optional: Configure data caching for your EJB timers. Caching allows the application server to reuse timer data without having to query the database each time that data is required. See the topic on Caching data for a timer service for information on configuring this feature.
  6. Click Apply.
  7. Click OK.



In this information ...


IBM Redbooks, demos, education, and more

(Index)

Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

Task topic    

Terms of Use | Feedback

Last updated: Feb 19, 2011 5:25:36 AM CST
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=v610web&product=was-nd-mp&topic=tejb_timerservice
File name: tejb_timerservice.html