+

Search Tips   |   Advanced Search

Configure the default ActivitySession timeout for an application server

Configure the default ActivitySession timeout for an application server, after which any started ActivitySessions are completed automatically by the ActivitySession service.

The ActivitySession timeout is used to reset any ActivitySession whose remote client has failed to complete the ActivitySession in a timely fashion. We can configure the initial default timeout separately for each application server, and we can override the timeout programmatically using the setSessionTimeout method of the UserActivitySession interface. If an ActivitySession containing a transaction reaches the timeout, the transaction's timeout is accelerated so that it is timed out (and rolled back) immediately before the ActivitySession is reset.

To configure the default ActivitySession timeout for an application server, we can use the administrative console.


Tasks

  1. In the navigation pane of the administrative console, click...

            Servers > Server Types > WebSphere application servers.

  2. Click the name of the application server to configure. This displays the properties for the application server in the content pane.

  3. Click [Container Settings] Business Process Services > ActivitySession Service The ActivitySession service properties are displayed.

  4. Ensure that Enable service at server startup is selected. We must enable the service for the timeout to have an effect.

  5. In the Default timeout field, set the default ActivitySession timeout in seconds.

    • -1 indicates that ActivitySessions never time out
    • 0 indicates that the default timeout, 300 seconds, applies
    • Other values are an integer number of seconds

  6. Click OK.

  7. Save changes to the master configuration.

  8. For the changed configuration take effect, stop then restart the application server.


Related:

  • The ActivitySession service
  • Developing an enterprise application to use ActivitySessions