[jboss-dev-forums] [Design of JBoss jBPM] - Re: JTA integration
jeffdelong
do-not-reply at jboss.com
Wed Dec 20 10:50:16 EST 2006
I am confused. I have used jBPM in a JTA environment since last March at least, using the following configuration in the jbpm.cfg.xml file:
| <service name="persistence">
| <factory>
| <bean class="org.jbpm.persistence.db.DbPersistenceServiceFactory">
| <field name="isTransactionEnabled"><false/></field>
| </bean>
| </factory>
| </service>
|
|
With this configuration, the jbpmContext.close does not commit the transaction or close the Hibernate session.
As for using the Hibernate session with jBPM, it would be nice for jbpm to use the sessionFactory.getCurrentSession() method. In the past I have injected the Hibernate session into jBPM using jbpmContext.setSession(s);
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995325#3995325
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995325
More information about the jboss-dev-forums
mailing list