Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Administration Guide

Configuring the EJB Timer Service Settings

The timer service is a persistent and transactional notification service provided by the enterprise bean container used to schedule notifications or events used by enterprise beans. All enterprise beans except stateful session beans can receive notifications from the timer service. Timers set by the service are not destroyed when the server is shut down or restarted.

ProcedureTo configure the Timer Service

  1. In the tree component, select the Configurations node.

  2. Select the instance to configure:

    • To configure a particular instance, select the instance’s config node. For example, the default instance, server, select the server-config node.

    • To configure the default settings for all instances, select the default-config node.

  3. Select the EJB Container node.

  4. Click the EJB Timer Service tab.

  5. Set the minimum delivery interval in milliseconds in the Minimum Delivery Interval field.

    Minimum Delivery Interval is the minimum number of milliseconds allowed before the next timer expiration for a particular timer can occur. Setting this interval too low can cause server overload.

  6. Set the maximum number of attempts the timer service makes to deliver the notification in the Maximum Redeliveries field.

  7. Set the interval, in milliseconds, between redelivery attempts in the Redelivery Interval field.

  8. Click Save.

  9. Restart the Application Server.

ProcedureTo use an external database with the Timer Service

The timer service by default uses an embedded database to store timers.

  1. Set up a JDBC resource for the database, as described in To create a JDBC resource.

  2. Enter the JNDI name of the resource in the Timer DataSource field.

  3. Click Save.

  4. Restart the Application Server.

    Sample timer database creation files are provided for PointBase and Oracle at install-dir/lib/install/databases/.