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]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to