Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reading values through CMPs

 
Prakash Dwivedi
Ranch Hand
Posts: 452
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
If i am entering data through CMPs and than try to read the data from the CMP (using a finder), without commiting the previous transaction, will i recieve uncommited values or the previously stored value?


thanx
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Prakash Dwivedi:
Hello,
If i am entering data through CMPs and than try to read the data from the CMP (using a finder), without commiting the previous transaction, will i recieve uncommited values or the previously stored value?


thanx


Yes, provided it the same transaction. A transaction has to see the changes it has made even though it has not commited. Other transaction will not be able to see the changes unless they are running in READ UNCOMMITTED transaction isolation level.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic