[jboss-user] [jBPM] - Re: jBPM5 - Using as a state machine in clustered spring application with a dashboard

Arkady Perepelyuk do-not-reply at jboss.com
Thu Sep 8 00:32:13 EDT 2011

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

"Re: jBPM5 - Using as a state machine in clustered spring application with a dashboard"

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

I think there might be a problem with trying to share the same Knowledge Session across the cluster. I tried doing so and observed the following issue. A node tries to commit a transaction and finds out that entity SessionInfo has been updated by another transaction. The exception looks 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]

It should be noted that it's just a warning, but I'm not sure if the necessary updates are re-attempted in order to persist the state accuratly.

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/20110908/58e55e9b/attachment.html 

More information about the jboss-user mailing list