Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Transaction Isolation Level

 
seema mani
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
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
seema
 
nan sh
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In your situation, ti and t2 can not be different islation level.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic