[jboss-user] [jBPM] - Re: "Entity manager is closed" when using spring defined sessions, and async work item handlers
Maciej Swiderski
do-not-reply at jboss.com
Tue Jul 24 06:08:48 EDT 2012
Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion
"Re: "Entity manager is closed" when using spring defined sessions, and async work item handlers"
To view the discussion, visit: https://community.jboss.org/message/749841#749841
--------------------------------------------------------------
I think it is caused by accessing manager (WorkitemManager) in your async handler after transaction was committed. You need to use session instead of the manager in async approach. So when registering handler on the session make sure that you inject session into handler too and to complete the work item use:
session.getWorkItemManager().completeWorkItem(...)
HTH
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/749841#749841]
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/20120724/07279d69/attachment.html
More information about the jboss-user
mailing list