[jboss-dev-forums] [Design of JBoss jBPM] - does optimistic locking always work ?
tom.baeyens@jboss.com
do-not-reply at jboss.com
Tue Sep 19 02:53:16 EDT 2006
can there be a problem in case two threads try to perform a jbpm workflow operation on the same token in case we use optimistic locking on all runtime data like tokens, process instance, taskinstance, variable instance... ?
Jeff mentioned that this might result in a problem when one thread updates the token while the other thread only reads the token. In that case, hibernate's optimistic locking mechanism will not detect the problem.
BUT...
Isn't this the same as if the token-read-only-tx would have been performed before the token-update-tx in a serialized manner ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972488#3972488
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972488
More information about the jboss-dev-forums
mailing list