DevPortal

What is an Optimistic Repeatable Read?


In this isolation level multiple instances of beans are created for each concurrent transaction. When a transaction is committed and when there are any updates in the transaction, a verified update is done. The container validates the state of the cache against the database while committing each transaction.

Use Case Scenario

This concurrency strategy should be used when there are high concurrent reads and low concurrent updates and the cost of rollbacks are sustainable. This strategy yields higher data integrity than Read Committed.

Performance Advantage

For a standalone deployment with exclusive DB access, a load from DB is avoided and concurrent transactions that require shared lock for get accessor methods can go ahead and access the bean.


Related Topics:

© Pramati Technologies 2007 Runs on Pramati Server | Feedback | Legal