|
Hey,
I guess, if one sets TX_SERIALIZABLE
that would solve Sabastien's problem.
The bottom line is the first started
Transaction always wins.
Say Bean1 and Bean2 are the two bean
instarnces pulled from the free pool which are being
executed....
say Bean1 corresponds to User1 and
Bean2 to User2
now, if Bean1 has first
strated the transaction then no matter what Bean2 has to wait till Bean1 commits
the transaction since the row is already locked in a transaction ( if Bean2
also wants to update the same record). One should note that Bean1 and Bean2 are
not CMPs but stateless-session beans with embedded JDBC.
if Bean2 has first started the
transaction then Bean1 has to wait till it commits the
transaction
So the feature which
Sabastein wants is "built-in" .
Even is one
implements Versioning-stuff, still the story remains the
same..
I guess one of the most
significant features of Vesioning is to detect dirty-value-objects floating
around in the system, detecting stale data in the system so that one can get the
datastructures refreshed with the fresh data. Vesioning is not to
stop/detect/start Concurrent record updates which forms the base of the question
asked by Sabastein.
while Bean1 is under
transaction if Bean2 tries another transaction it gets rolled back
!!!
Am I missing anything
here !
regards,
kris
|
Title: Message
- Concurrent record update BOUTTE Sebastien
- Re: Concurrent record update Ashwani Kalra
- Re: Concurrent record update Juan Pablo Lorandi
- Re: Concurrent record update Sanjeev Verma
- Re: Concurrent record update Juan Pablo Lorandi
- Re: Concurrent record update Ramakrishna N
- Re: Concurrent record update Juan Pablo Lorandi
- Re: Concurrent record update Juan Pablo Lorandi
- Re: Concurrent record update BOUTTE Sebastien
