Transaction Life Cycle

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.

graphics/14fig02.gif



Sams Teach Yourself BEA WebLogic Server 7. 0 in 21 Days
Sams Teach Yourself BEA WebLogic Server 7.0 in 21 Days
ISBN: 0672324334
EAN: 2147483647
Year: 2002
Pages: 339

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net