This week's book giveaway is in the Other Languages forum. We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line! See this thread for details.
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).]
posted 15 years ago
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).]