leo jut [
https://community.jboss.org/people/jutleo] created the discussion
"jBPM5.4 and Spring Integration for multiple Transaction Manager"
To view the discussion, visit:
https://community.jboss.org/message/833475#833475
--------------------------------------------------------------
h2. I refer to the official documentation, jBPM5.4 Integration spring.
h3.
http://docs.jboss.org/jbpm/v5.4/userguide/ch.integration.html#d0e7880 19.3.2. Spring
using local transactions
*that's ok!*
*howeve, existing system use HibernateTransactionManager, if jBPM5 human task error,
existing system data writed database,How to deal with multiple transacation manager?*
*exist system config:*
<bean id="transactionManager"
class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory">
<ref local="sessionFactory" />
</property>
</bean>
*jbpm5.4 config:*
<bean id="jbpmEMF"
class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
<property name="persistenceUnitName"
value="org.jbpm.persistence.local"/>
</bean>
<jbpm:ksession id="ksession" type="stateful"
kbase="kbase">
<jbpm:configuration>
<jbpm:jpa-persistence>
<jbpm:transaction-manager
ref="transactionManager"/>
<jbpm:entity-manager-factory
ref="jbpmEMF"/>
</jbpm:jpa-persistence>
</jbpm:configuration>
</jbpm:ksession>
*
*
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/833475#833475]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]