[jboss-dev-forums] [Design of JBoss jBPM] - Re: Another potential enhancement to jbpm

tom.baeyens@jboss.com do-not-reply at jboss.com
Tue Jan 22 09:48:37 EST 2008


afaik, the job executor threads first try to write their name in a job before they execute it.  that update should be guarded with optimistic locking.  if multiple threads try to do this at the same time, all but one should get an exception and they have to rollback.  i think this requires READ_COMMITTED as hibernate optimistic locking requires isolation level READ_COMMITTED on the jdbc connections.

so please be more specific to the problem in the current code and what changes you want to apply and why.

the LockMode.UPGRADE_NOWAIT is not preferred as not all databases support LockMode.UPGRADE.  that is why we opted for optimistic locking instead.


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

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



More information about the jboss-dev-forums mailing list