im trying to prevent this scenario:

im trying to prevent:

x=1

t1 stores x as a1
t2 stores x as a2
t1 increments a1 from 1 to 2
t2 increments a2 from 1 to 2
t1 commits
t2 commits

the value should be 3 but ends up being 2 

should i use pessimistic locking with versioning, and then catch the 
staleobjectstateexception and handle retrying?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227904#4227904

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227904
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to