[jboss-user] [jBPM] - Re: Clustering strategy for jBPM5

Arkady Perepelyuk do-not-reply at jboss.com
Wed Sep 7 23:59:49 EDT 2011

Arkady Perepelyuk [http://community.jboss.org/people/arkper] created the discussion

"Re: Clustering strategy for jBPM5"

To view the discussion, visit: http://community.jboss.org/message/625402#625402

No. I have tried to do so, but it appears to be an issue when Hibernate tries to update SessionInfo shared by more than one node. It fails to commit the transaction if the entity has been updated by another node. The exception is as follows:

Hibernate: update SessionInfo set lastModificationDate=?, rulesByteArray=?, startDate=?, OPTLOCK=? where id=? and OPTLOCK=?
Sep 7, 2011 10:39:34 PM org.drools.persistence.jta.JtaTransactionManager commit
WARNING: Unable to commit transaction

: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.drools.persistence.info.SessionInfo#1

Something like Terracotta should help to cluster Knowledge Session as it has a potential to instrument the byte code and introduce the necessary locking mechanism to make the shared objects "thread"-safe even for threads running in different JVMs.

Has anybody tried and succeeded integrating jBPM5 with Terracotta?


Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110907/4f4aad3b/attachment-0001.html 

More information about the jboss-user mailing list