EJB Timer Service settings

Use this page to configure and manage the EJB Timer Service for a specific EJB container.

To view this administrative console page, click Servers >Application Servers > servername > EJB Container Settings > EJB Timer Service Settings.

The two radio buttons that appear on this page offer you choices that are mutually exclusive.

Scheduler Type

 

Configuration tab

Data source JNDI Name

Specifies the Java Naming and Directory Interface (JNDI) name of the data source where persistent EJB Timers are stored for this EJB container. Any data source available in the name space can be used for EJB Timers. Multiple EJB Containers can share a single data source while using different tables by specifying a table prefix.

Data type String
Default jdbc/DefaultEJBTimerDataSource

Data source alias

Authentication alias to a user name and password used to access the data source.

Data type String

Table prefix

A string prepended to the EJB Timer Service table names (TASK, TREG, LMGR and LMPR). These tables are created during server start if they do not already exist. See help on the Scheduler Service for information about manually creating these tables. Multiple independent EJB Timer Services can share the same database if each instance specifies a different prefix string.

Data type String
Default EJBTIMER_

Poll interval

The interval at which the EJB Timer Service daemon polls the database. Each poll operation can be expensive. If the interval is extremely small and there are many scheduled tasks, polling can consume a large portion of system resources. New Timers set to expire sooner than this interval might not execute until the interval ends. If this value is too large, a potentially large number of timer events might be read into memory, because all the timer events occurring in the next poll interval are read-in each time.

Data type Integer
Units seconds
Default 300
Range 3 -- 1800

Number of timer threads

The number of threads used to execute concurrent EJB Timer tasks. Setting the number of Timer Threads to zero disables the EJB Timer Service.

Data type Integer
Default 1
Range 0 -- 500

Scheduler JNDI name

This field is only used when the Use Custom Scheduler Instance choice is made. It specifies the JNDI name of a custom Scheduler instance to use for managing and persisting EJB Timers. Internal EJB Timer Service Scheduler Instance configuration information is not applied to the specified Scheduler instance.

Data type String