Using the transaction service

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

In WebSphere Application Server, transactions are managed by three main components:
  • A transaction manager. The transaction manager supports the enlistment of recoverable XAResources and ensures that each such 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.

    [z/OS] 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 J2EE 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 description of the Java Transaction API (JTA) 1.1 Specification.

    Also, Java Transaction API (JTA) support includes additional application programming interfaces that provide access to global and local transaction identifiers associated with a thread, and a transaction synchronization callback that a component can use to register with a JTA transaction (for example, to be notified of transaction completion).

Use the following tasks to work with transactions in WebSphere Application Server applications:

Procedure




In this information ...


Related concepts
Related reference

IBM Redbooks, demos, education, and more

(Index)

Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

Task topic Task topic    

Terms and conditions for information centers | Feedback

Last updatedLast updated: Aug 31, 2013 2:56:59 AM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=pix&product=was-nd-dist&topic=tjta_ep
File name: tjta_ep.html