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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...