2.12. Using Transactions

Transactions are a big part of most enterprise applications. Transactions enable you to change your mind and return to a previous action (rollback) or go forward and commit the action. Without transactions, you cannot delete or change the work performed. A transaction must adhere to the ACID principal. It must be Atomic, Consistent, Isolatable, and Durable. Atomic means the transaction does not partially complete. It is either totally complete or it is backed out to where it started. A consistent transaction leaves the datastore in a consistent state. You can access the datastore and get the correct result. An isolatable transaction is independent of other transactions. The completion of your transaction does not depend ...

Get Sun Certified Enterprise Architect for J2EE™ Technology Study Guide 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.