Configure transaction properties for an application server

 

+

Search Tips   |   Advanced Search

 

Procedure

  1. Start the administrative console.

  2. In the navigation pane, select...

    Servers | Application Servers | app_server | Container Settings | Container Services | Transaction Service

    Configuration

    The values of properties defined in the configuration file. If you change these properties, the new values are applied when the application server next starts.

    Runtime

    The runtime values of properties. If you change these properties, the new values are applied immediately, but are overwritten with the Configuration values when the application server next starts.

  3. To review transaction-related configuration properties, ensure that the Configuration page is displayed.

  4. To change the directory in which transaction logs are written, type the full pathname of the directory in the Transaction log directory field. We can check the current runtime value of Transaction log directory, by clicking the Runtime tab.

    When using WAS without High Availability support, one can leave the recovery log configuration for persistent services (such as the transactions service) unset. The application server assumes a default location within the appropriate profile directory. When High Availability support is enabled, this default may not be visible from all servers in the cluster (for example, if they are in different profiles or physical nodes.) As a result, it is recommended that the recovery log location be configured for each server in the cluster before enabling High Availability.

    We can also specify a size for the transaction logs, as described in the following step.

    Note: If you change the transaction log directory, you should apply the change and restart the application server as soon as possible, to minimize the risk of problems caused that might occur before the application server is restarted. For example, if a problem causes the server to fail (with in-flight transactions), the server next starts with the new log directory and is unable to automatically resolve in-flight transactions that were recorded in the old log directory.

  5. If you want to change the default file size of transaction log files, modify the Transaction log directory field to include a file size setting, in the following format:

    directory_name;file_size
    

    Where

    • directory_name is the name of the transaction log directory

    • file_size is the new default size specified in bytes. The nK or nM suffix can be used to indicate kilobytes or megabytes. If you do not specify a file size value, the default value of 1M is used.

    For example,...

    c:\tranlogs;2M

    ...indicates the files are to be created with 2M bytes size and stored in the directory c:\tranlogs.

    In a non-production environment, use the transaction log directory value of ;0 to disable transaction logging. (There must be no directory name element before the size element of 0.) You should not disable transaction logging in a production environment, because this prevents recovery after a system failure and, therefore, data integrity cannot be guaranteed.

  6. Review or change the value of transaction timeout properties:

    Total transaction lifetime timeout

    Type the number of seconds a transaction can remain inactive before it is ended by the transaction service. A value of 0 (zero) indicates that there is no timeout limit.

    Client inactivity timeout

    Type the number of seconds after which a client is considered inactive and the transaction service ends any transactions associated with that client. A value of 0 (zero) indicates that there is no timeout limit.

  7. Review or change heuristic-related properties:

    Heuristic retry limit

    The number of times that the application server retries a completion signal, such as commit or rollback, after a transient exception from a resource manager or remote partner.

    Heuristic retry wait

    The number of seconds that the application server waits before retrying a completion signal, such as commit or rollback, after a transient exception from a resource manager or remote partner.

    Enable logging for heuristic reporting

    Select this property to enable the application server to log "about to commit one-phase resource" events from transactions that involve a one-phase commit resource and two-phase commit resources.

    Heuristic completion direction

    Select the direction used to complete a transaction that has a heuristic outcome; either the application server commits or rolls back the transaction, or depends on manual completion by the administrator.

  8. Review or change other configuration properties

  9. Click OK and save.

  10. Stop then restart the application server.

    If you change the transaction log directory configuration property to an incorrect directory name, the application server will restart but be unable to open the transaction logs. You should change the configuration property to a valid directory name, then restart the application server.

    If you are running the application server as non-root, modify the permissions on the new transaction log location. If you want to use peer recovery of transactions on a shared device with non-root users, make sure that your non-root users and groups have matching identification numbers across machines

 

See also


Transaction service settings