Introduction to Transactions

Today transactions play a very important role in almost all business sectors (finance, banking, and so on). A transaction encapsulates a set of operations that is either successfully completed or not completed at all.

Let's look at a real-life example of transaction handling. When a customer goes to an ATM to make a transaction, there are a series of operations performed after the customer inserts an ATM card into the machine's card reader slot (see Figure 14.1). They are as follows:

1.
Customer selects the type of operation (withdrawal, deposit, and so on).
2.
Customer enters appropriate details, like customer card number and PIN, which are sent to the bank via the ATM for validation.
3.
Bank validates the details ...

Get Sams Teach Yourself BEA WebLogic Server 7.0™ 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.