[jboss-user] [JBoss jBPM] - Re: Integrate JPA with JBPM-JPDL3.2.2

sreepathia@gmail.com do-not-reply at jboss.com
Tue Jun 3 13:05:57 EDT 2008


Thanks, I am using the setsession to make this integration work. like 
jbpmContext = jbpmConfiguration.createJbpmContext();
jbpmContext.setSession(<>);

Now the session object is handling all the database activities for me. The session is getting opened and also closed automatically by my transaction manager configured thru spring. 
I may need some info for the scenario below:

Actual problem now when i try to close the context using jbpmContext.close() jbpm tries to close the session associated with the context. as the session was automatically closed when i moved out of my method and trying to close the jbpmconext later after doing some business logic.
couple of ways i have in my mind,but not sure if this si right.
1) should we close the jbpm context after every action we do and create a new one later,will it not affect the performance.
2) Should we not close the jbpmconext in this scenario, Will there be any problems in keeping the context's in the stack which are of no use.

Thanks

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155441#4155441

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4155441



More information about the jboss-user mailing list