[jboss-user] [jBPM] - Re: Commit transaction after each service task?

Rahul Agrawal do-not-reply at jboss.com
Mon Aug 27 07:47:47 EDT 2012


Rahul Agrawal [https://community.jboss.org/people/rahulamt] created the discussion

"Re: Commit transaction after each service task?"

To view the discussion, visit: https://community.jboss.org/message/756156#756156

--------------------------------------------------------------
Hi Mauricio,
Thanks for the reply.

This approach looks promising. But I do have a doubt regarding it. Do I need to load the session in the component which is processing the message? Can't I have the session stored at global level in JVM and use that? And for reloading do I have to dispose session in the executeWorkItem(...)? I am using strategy of using session-per-process. So there will be multiple process instances which will be using the same session, then is it a good idea to dispose it? Or even if i dont dispose it, is it good to reload it? Wont it cause problems?

Thanks
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/756156#756156]

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/20120827/493c1146/attachment-0001.html 


More information about the jboss-user mailing list