Transactions with EJBs
Transactions involve grouping multiple database update operations into a single, self-contained, atomic update. Since J2EE applications often involve the integration of multiple legacy systems, database updates can involve the updates of multiple databases from different database vendors. For this reason, the EJB specification requires application servers to provide a transaction manager to manage the updates between the databases and provide for a distributed transaction, a transaction that can be maintained across multiple database resources.
In real-world applications, database update activity can become very complex very quickly. Having the ability to simply roll back and undo a set of complex database updates, even ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access