Understanding Transaction Fundamentals

A transaction is a set of one or more SQL statements that are executed together as a unit of work, so either all the statements are executed or none of the statements are executed. In addition to grouping statements together for execution as a unit, a transaction becomes the fundamental unit of recovery, consistency, and concurrency in reliable J2EE applications.

One of the primary objectives of EJB architecture is to provide transaction services through the EJB container. This relieves the application programmer from dealing with the complex issues of failure recovery, concurrency, and multi-user programming. The transaction simplifies the task of building a sophisticated enterprise application, and it ...

Get Sams Teach Yourself EJB in 21 Days 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.