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:
TRANSACTION_SERIALIZABLE
TRANSACTION_REPEATABLE_READ
TRANSACTION_READ_COMMITTED
TRANSACTION_READ_UNCOMMITTED
Starts a transaction Temporarily debit the checking account with $100 Temporarily credit the $100 to the savings account If there were no problems permanently update the accounts