O'Reilly logo

Special Edition Using Java™ 2 Enterprise Edition by Mark Wutka

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Why Transactions Are Important

When you write a database application, you often take transactions for granted. Transactions are an integral part of database applications, although in simple applications you might not notice transactions taking place because your database connection can be automatically committing the transactions without your knowledge.

A transaction lets you group a set of operations into an all-or-nothing operation. In other words, either the operations all succeed or they all fail. Going back to the example in Chapter 5, "Overview of Enterprise JavaBeans," imagine that you're using an automatic teller machine. The dispensing of the cash and the debiting of your account should be accomplished as a single transaction. You don't ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required