Network Deployment (Distributed operating systems), v8.0 > Administer applications and their environment > Administer ActivitySessions > Administer applications that use ActivitySessions


Configure the default ActivitySession timeout for an application server

Use this task to 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 you can override the timeout programmatically by using the setSessionTimeout method of the UserActivitySession interface. If an ActivitySession that contains 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, you can use the administrative console.


Procedure

  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 your changes to the master configuration.

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


Related


ActivitySession service settings
The ActivitySession service
Develop an enterprise application to use ActivitySessions
Use the ActivitySession service

+

Search Tips   |   Advanced Search