JBoss Community

Re: Commit transaction after each service task?

created by Rahul Agrawal in jBPM - View the full discussion

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

Start a new discussion in jBPM at Community