Using the transaction service
In WebSphere® Application Server, applications can use transactions to coordinate multiple updates to resources as atomic units (as indivisible units of work) such that all or none of the updates are made permanent.
About this task
- A
transaction manager. The transaction manager supports the enlistment
of recoverable XAResources and ensures that each resource of this
type is driven to a consistent outcome either at the end of a transaction
or after a failure and restart of the application server.
Also, WebSphere Application Server for z/OS® supports the coordination of resource managers through RRS (z/OS resource recovery services).
- A container in which the enterprise application runs. The container manages the enlistment of XAResources on behalf of the application when the application performs updates to transactional resource managers (for example, databases). Optionally, the container can control the demarcation of transactions for enterprise beans configured for container-managed transactions.
- An application programming interface, UserTransaction,
that is
available to bean-managed enterprise beans and servlets. These application
components can use the UserTransaction interface to control the demarcation
of their own transactions.
For details about the methods available with the UserTransaction interface, see the Java™ Transaction API (JTA) 1.1 Specification.
Also, Java Transaction API (JTA) support includes additional application programming interfaces so that application frameworks can manipulate the unit of work (UOW) context of a thread, and components can register with a JTA transaction (for example, a persistence manager can be notified of transaction completion).
Use the following tasks to work with transactions in WebSphere Application Server applications:
Procedure
- Developing components to use transactions
- Configuring transaction properties for an application server
- 配置同層級回復的交易內容
- Managing manual peer recovery of the transaction service
- Managing active and prepared transactions
- Managing active and prepared transactions by using wsadmin scripting
Managing transaction logging for optimum server availability
- 在應用程式伺服器之間進行交易交互作業
- Using WS-Transaction policy to coordinate transactions or business activities for web services
- Troubleshooting transactions
- 在相同交易中使用一段式和兩段式確定資源
- Using the ActivitySession service