Manage active and prepared transactions

 

+

Search Tips   |   Advanced Search

 

Overview

Under normal circumstances, transactions should run and complete (commit or rollback) automatically, without the need for intervention. However, in some circumstances, you may need to resolve a transaction manually. For example, you may want to rollback a transaction that has become stuck polling a resource manager that you know will not become available again within the desired timeframe.

If you choose to complete a transaction on an application server, it is recorded as having completed in the transaction service logs for that server, so will not be eligible for recovery during server start up. If you complete a transaction, you are responsible for cleaning up any in-doubt transactions on the resource managers affected.

We can use the administrative console to display a snapshot of all the transactions in an application server that are in the following states:

Manual transactions

Transactions awaiting administrative completion. For each transaction, the local id or global id is displayed. We can choose to display information on each resource (specifically, which resource manager it is associated with) associated with the transaction. We can also choose to commit or rollback transactions in this state.

Retry transactions

Transactions with some resources being retried. For each transaction, the local id or global id is displayed, and whether the transaction is committing or rolling back. We can choose to display information on each resource (specifically, which resource manager it is associated with) associated with the transaction. We can also choose to finish (abandon retrying) transactions in this state.

Heuristic transactions

Transactions that have completed heuristically. For each transaction, the local id or global id and the heuristic outcome is displayed. We can choose to display information on each resource (specifically, which resource manager it is associated with) associated with the transaction. We can also choose to clear the transaction from the list.

Imported prepared transactions

Transactions that have been imported and prepared but not yet committed. For each transaction, the local id or global id is displayed. We can choose to display information on each resource (specifically, which resource manager it is associated with) associated with the transaction. We can also choose to commit or rollback transactions in this state.

To manage the active and prepared transactions for an application server, use the administrative console to complete the following steps:

 

Procedure

  1. Display the Transaction Service runtime page for application server:

    1. In the navigation pane, click...

      Servers | Application Servers | application server | Runtime | Transaction Service

      This displays values for the runtime properties of the transaction service, including the number of transactions in the active and prepared states.

    2. To display a snapshot of the transactions in a specific state, click Review in the field label.

    3. Optional: If you want to display information about the resources associated with a transaction, click the name of the transaction.

    4. Optional: If you want to act on a transaction, select the check box provided on the entry for the transaction, then click one of the buttons provided. Alternatively, to act on all transactions, select the check box in the header of the transactions table, then click a button.


     

    Related Tasks


    Configuring transaction properties for an application server