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 ...
Get J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software 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.