[jboss-user] [jBPM] - Re: JTA Problem with multiple sessions
Maciej Swiderski
do-not-reply at jboss.com
Thu Jan 31 12:28:34 EST 2013
Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion
"Re: JTA Problem with multiple sessions"
To view the discussion, visit: https://community.jboss.org/message/795448#795448
--------------------------------------------------------------
Gareth, I believe that this is caused by multiple session listening on completed tasks events and when second task is completed (from another process that was started by new session) events are sent to all listeners - meaning two sessions and both will try to resume process and thus optimistic locking exception. You can instruct the work item handler to only react on tasks completed events that were created by given session by setting workitemhandler.setOwningSessionOnly(true) that should ensure only session that created the task will consume its completed task event. Please not that this forces you to use same session (with same id) to resume process after task was completed.
HTH
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/795448#795448]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130131/ad85df58/attachment.html
More information about the jboss-user
mailing list