Sams Teach Yourself BEA WebLogic Server 7.0 in 21 Days

For every transaction, there is always a boundary set. All the operations falling within that boundary have to be successfully executed, or all its data will be restored to what it was before the transaction began. The steps are as follows (see Figure 14.2):

  1. Initiate a transaction.

  2. Did all operations marked for transaction execute successfully?

  3. If yes, commit the changes. If not, roll back the changes done by all operations.

Figure 14.2. Flowchart of a transaction life cycle.

Категории