EJB Architecture  «Prev 

Example of J2EE transactions using an example - Transaction isolation levels

Transaction isolation levels determine database behavior, but are managed by the J2EE server, which is responsible for overall transactIon co-ordination.
TransactIon isolation levels control the degree of isolation between concurrent transactions accessing the same database.
SQL 92 defines four transaction isolation levels, which are supported in the JDBC API.
In decreasing order of isolation , these are:
  1. TRANSACTION_SERIALIZABLE
  2. TRANSACTION_REPEATABLE_READ
  3. TRANSACTION_READ_COMMITTED
  4. TRANSACTION_READ_UNCOMMITTED

1) Starts a transaction
Starts a transaction

2) Temporarily debit the checking account with $100
Temporarily debit the checking account with $100

3) Temporarily credit the $100 to the savings account.
Temporarily credit the $100 to the savings account

4) If there were no problems permanently update the accounts
If there were no problems permanently update the accounts