aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Reading values through CMPs 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 "Reading values through CMPs" Watch "Reading values through CMPs" New topic
Author

Reading values through CMPs

Prakash Dwivedi
Ranch Hand

Joined: Sep 28, 2002
Posts: 452
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


Prakash Dwivedi (SCJP2, SCWCD, SCBCD)
"Failure is not when you fall down, Its only when you don't get up again"
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

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.


Groovy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Reading values through CMPs