Transaction/JTA Overview

For the purpose of this discussion, a transaction can be defined as a unit of work containing one or more operations involving one or more shared resources having Atomicity, Consistency, Isolation and Durability (ACID) properties. ACID can be defined as follows:

  • Atomicity—A transaction must be atomic, meaning that either all or none the work done in the transaction must be performed. Doing only part of a transaction is not allowed.

  • Consistency—When a transaction is completed, the system must be in a stable and consistent condition. Here consistent is with respect to all modifications of state that have been attempted by work done in the context of a transaction. If the transaction fails, there cannot be any side effects ...

Get JBoss™ Administration and Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.