Configuring a timer service

You can configure and manage the EJB timer service for a specific EJB container.

About this task

Procedure

  1. Open the administrative console.
  2. Click Servers > Application servers > server_name > EJB Container settings > EJB timer service settings . The timer service settings panel is displayed.
  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 for the scheduler is associated with a Apache Derby database. If you choose to customize the pre-configured instance:
    1. To change the data source (you can 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, read about 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 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 execute on a different cluster member.
    To use your own instance, you must:
    1. Configure a scheduler instance through the Scheduler Service graphical user interface. See the using schedules for information on how to do this.
    2. Select your Scheduler JNDI name from the list.
  5. [Fix Pack 9 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. For more information, see the information about caching data for a timer service.
  6. Click Apply.
  7. Click OK.



In this information ...


Related tasks
Related reference

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: Oct 21, 2010 10:04:34 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=compass&product=was-nd-mp&topic=tejb_timerservice
File name: tejb_timerservice.html