9.2. Transactions described

Transaction management is described in all decent database management books, [1] so I won’t go into much detail here. The following should be considered the minimum you need to know about transaction management to develop transactional EJB applications.

[1] Alternatively, save money and read the documentation that comes with Cloudscape, which is free. It includes a number of nice hands-on exercises that demonstrate the principles of transactions and locking.

9.2.1. Transaction examples

A transaction is a sequence of operations that are carried out together and form a single unit. The ‘textbook’ example is that of transferring money between bank accounts. To do this, we must withdraw money from one account (first operation) ...

Get Applied Enterprise JavaBeans™ Technology 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.