Use the transaction service
Overview
WAS applications use transactions to coordinate multiple updates to resources as atomic units such that all or none of the updates are made permanent.
In WAS, transactions are managed by three main components:
- Transaction manager
The transaction manager supports the enlistment of recoverable XAResources and ensures that each such resource is driven to a consistent outcome, either at the end of a transaction, or after a failure and restart of the appserver.
- J2EE application container
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.
- UserTransaction API
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...
Procedure
- Develop components to use transactions
- Configure transaction properties for an appserver
- Configure transaction properties for peer recovery
- Manage manual peer recovery of the transaction service
- Manage active and prepared transactions
- Manage transaction logging for optimum server availability
- Interoperate transactionally between appservers
- Configure Web Services Atomic Transaction support in a secure environment
- Configure an intermediary node for Web services transactions
- Enable WAS to use an intermediary node for Web services transactions
- Configure a server to use business activity support
- Create an application that uses the business activity support
- Troubleshoot transactions
- Use one-phase and two-phase commit resources in the same transaction
- Use the ActivitySession service
Transaction support in WAS
Developing components to use transactions
Configure transaction properties for an appserver
Configure transaction properties for peer recovery
Manage manual peer recovery of the transaction service
Local transaction containment considerations
Manage active and prepared transactions
Manage transaction logging for optimum server availability
Interoperating transactionally between appservers
Configure Web Services Atomic Transaction support in a secure environment
Configure an intermediary node for Web services transactions
Enabling WAS to use an intermediary node for Web services transactions
Configure a server to use business activity support
Creating an application that uses the business activity support
Business activity API
Troubleshooting transactions
Transaction service exceptions
Use one-phase and two-phase commit resources in the same transaction
Related concepts
Extended JTA support
Related tasks
Use the ActivitySession service