[jboss-dev-forums] [Design of JBoss jBPM] - Re: does optimistic locking always work ?

alex.guizar@jboss.com do-not-reply at jboss.com
Wed Sep 20 19:46:59 EDT 2006


Hibernate does offer a way to load an object for update: 
Session.load(class, id, LockMode.UPGRADE)

This is certainly not optmistic control but pessimistic locking. Tom's solution should do the trick for databases where optimistic control is the only viable approach (e.g. Hypersonic).

My alternative aims at environments where optimistic control is unfavorable due to high probability of concurrent updates.

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973111



More information about the jboss-dev-forums mailing list