Transaction overview

Before starting with the details, we need to understand the basic terminologies. A transaction is a working unit, a set of operations that can succeed or fail in a single atomic unit. Transactions ensure that a unit is either completely executed or completely rolled back. Transactions are important for a secure and solid working of critical operations in enterprise applications. Several resources work in a transaction, for example, business components, databases, and services.

The next image shows a simple concept of a transaction. A transaction consists of three main operations: begin, commit, and rollback. The transaction is started by the begin operation. A series of steps is performed, and if all succeeds in the end, ...

Get Mastering Java EE Development with WildFly 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.