0 Replies Latest reply on Aug 22, 2013 1:39 AM by leo jut

    jBPM5.4 and Spring Integration for multiple Transaction Manager

    leo jut Newbie

      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>