Configuring a Timer Service for network deployment

Use this task to configure the Enterprise JavaBeans (EJB) Timer Service to be used across multiple servers.

About this task

Completing this task if you are using the same data source. The steps that follow assume that you have already created a database instance, for example, DB2 or Oracle. You must configure the Timer Service to use that database.

There are two ways to configure the Timer Service to share the same database across multiple servers. Choose either step 1 or 2.

Procedure

  1. Configure a scheduler instance for the cluster, then configure the Timer Service to use that scheduler instance.
    1. Configure a scheduler instance for the cluster. This creates for you a custom scheduler instance. Next you need to configure the Timer Service to use that custom instance.
    2. Open the administrative console.
    3. Click Servers >Application Servers > servername > EJB Container Settings > EJB timer service settings. The Timer Service settings panel appears.
    4. Select the Use custom scheduler instance radio button.
    5. Select your Scheduler JNDI name from the dropdown list.
    6. Click Apply.
    7. Click OK.
  2. Configure the Timer Service default scheduler instance for each server to use the same data source.
    1. Select the Use internal EJB timer service scheduler instance radio button. To customize the pre-configured instance:
    2. To change the data source (you can use any supported database, such as DB2 or Oracle) select your Data source JNDI name from the dropdown list. The default database listed cannot be shared, because it is configured to be visible to one server only, and it uses the single server version of Cloudscape, which can only be accessed by one server process at a time.
    3. Enter your chosen Datasource Alias.
    4. Enter your chosen Table Prefix if you want to have several server processes use the same database, but different tables.
    5. Enter a Poll Interval value in milliseconds. For more information about the fields, see EJB Timer Service settings
    6. Click Apply.
    7. Click OK.
    8. Change all of your server processes to use the same database you chose from the Data source JNDI name dropdown list earlier.



In this information ...


Related tasks
Related 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: Sep 20, 2010 10:03:57 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=vela&product=was-nd-zos&topic=tejb_timercluster
File name: tejb_timercluster.html