aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes does EJB2.0 supports transaction isolation levels? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "does EJB2.0 supports transaction isolation levels?" Watch "does EJB2.0 supports transaction isolation levels?" New topic
Author

does EJB2.0 supports transaction isolation levels?

yamini nadella
Ranch Hand

Joined: Apr 13, 2004
Posts: 257
what are transaction isolation levels? does EJB2.0 supports them?

Yamini.
Kathy Sierra
Cowgirl and Author
Ranch Hand

Joined: Oct 10, 2002
Posts: 1572
Howdy, no, you don't set isolation levels within EJB 2.0. They are set on the resource itself now, although in EJB 1.0 you WERE able to specify isolation levels in the Deployment Descriptor.

Isolation levels define how protected an operation is from what other operations are doing, and determines how long locks are held, etc. So it is always a tradeoff between performance vs. integrity. If you have NO locks, obviously you have maximum concurrency, but everyone might step on everyone else's transactions and you might corrupt the data, so it really depends on the kinds of operations being done to the database (read vs. write, etc.)

The four isolation levels are often labeled as:

READ UNCOMMITTED (also called "dirty read")

READ COMMITTED

REPEATABLE READ

SERIALIZABLE (has nothing to do with Java "Serializable", but means "one at a time")

But again, you don't need this for the exam!

cheers,
Kathy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: does EJB2.0 supports transaction isolation levels?
 
Similar Threads
Isolation level settings
Clarification on Oracle transaction isolation level
Strange Problem with Txn.
is it possible to obtian the entire persitent object map from the session?
Transaction Isolation Levels