File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Transaction Isolation Level Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Transaction Isolation Level" Watch "Transaction Isolation Level" New topic

Transaction Isolation Level

seema mani
Ranch Hand

Joined: Sep 30, 2001
Posts: 49
I'm confused about the Transaction Isolation level of ejbs.
for eg: The isolation level setting of 'Repeatable Read' is defined in the EJB book by OReilly as follows - The transaction cannot change data that is being read by a different transaction.
My doubt is like this - Suppose there are 2 transactions- t1 and t2. t1 has the isolation level set to 'Repeatable Read' and
t2 has the isolation level set to 'Read Uncommitted'.
Now if t1 reads some data which of the following is true ?
a. t1 cannot change data read by t2
b. t2 cannot change data read by t1
c. both a and b
Please advise even if you feel its a stupid question.
Its just not clicking.
Thanks a lot

Sun Certified Java Programmer<br />Sun Certified Web Component Developer<br />Sun Certified Business Component Developer
nan sh
Ranch Hand

Joined: Jan 05, 2001
Posts: 167
In your situation, ti and t2 can not be different islation level.

Have you tried this Mock Exam Testing Engine yet?<br /><a href="" target="_blank" rel="nofollow"></a>
I agree. Here's the link:
subject: Transaction Isolation Level
It's not a secret anymore!