[jboss-user] [JBoss jBPM] - Re: How can I split storage scheme JBPM and general?

mputz do-not-reply at jboss.com
Wed Jun 20 04:29:50 EDT 2007


anonymous wrote : It is necessary for application to guarantee execution in single transaction (jbpm and general). 

If you want to access the jBPM and the application data from within the same Hibernate session you could inject the Hibernate session into the jbpmContext (jbpmContext.setSession(s);). 

This can be done by using the DbPersistenceServiceFactory. You would have to set the configuration parameter "isCurrentSessionEnabled" to true, which wouldn't close the Hibernate session on the jBPM side. You could continue to work within the current transaction and do the Hibernate clean up work at the end of the transaction.


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

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



More information about the jboss-user mailing list