Sun Java System Application Server Platform Edition 8.2 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 Configuration node.

  2. Select the EJB Container node.

  3. Click the EJB Timer Service tab.

  4. 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.

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

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

  7. Click Save.

  8. 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 in install-dir/lib/install/databases/.