GeeCON Prague 2014*
The moose likes EJB and other Java EE Technologies and the fly likes data integrity with entity beans 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 "data integrity with entity beans" Watch "data integrity with entity beans" New topic
Author

data integrity with entity beans

Joseph Rank
Greenhorn

Joined: May 03, 2001
Posts: 7
Does anyone know a good resource that describes the concurrency management capabilities of entity beans? Specifically, I'm trying to find out:
Supposing I have an entity bean associated with a stateful session bean, I want to ensure that the fields mapped in the entity bean are "locked" for the session bean's lifetime--no other session bean can change the data, but reads are ok. Is this do-able with EJBs, or is this a db level issue?
[This message has been edited by Joseph Rank (edited June 20, 2001).]
greg philpott
Ranch Hand

Joined: Nov 10, 2000
Posts: 73
You can just make the fields that you don't want changed blank final variables:
final String varIDontWantChanged;
and then assign a value to the variable in an initializer.
[This message has been edited by greg philpott (edited June 22, 2001).]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: data integrity with entity beans