[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - catch staleobjectstateexception and retry?
do-not-reply at jboss.com
Thu Apr 30 16:18:09 EDT 2009
im trying to prevent this scenario:
im trying to prevent:
t1 stores x as a1
t2 stores x as a2
t1 increments a1 from 1 to 2
t2 increments a2 from 1 to 2
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
More information about the jboss-user