JBoss Community

jBPM5.4 and Spring Integration for multiple Transaction Manager

created by leo jut in jBPM - View the full discussion

I refer to the official documentation, jBPM5.4 Integration spring.

 

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

Start a new discussion in jBPM at Community