Default ActivitySession timeout for an application server
Overview
The ActivitySession timeout is used to reset any ActivitySession whose remote client has failed to complete the ActivitySession in a timely fashion. The initial default timeout can be configured separately for each application server, and can be overridden programmatically by 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, use the WebSphere Administrative console to complete the following steps:
Procedure
- Start the Administrative console.
- In the navigation pane, click...
Servers | Application Servers | appservername | Container Settings | Business Process Services | ActivitySession Service- Set the ActivitySession timeout property to the default timeout as an integer number of seconds.
-1 ActivitySessions never timeout 0 The default timeout, 300 seconds, applies
Other values are an integer number of seconds
- Click OK.
- Save your changes to the master configuration.
- To have the changed configuration take effect, stop then restart the application server.
Related Tasks
Developing a J2EE application to use an ActivitySession