[jboss-user] [jBPM] - jBPM5.4 and Spring Integration for multiple Transaction Manager

leo jut do-not-reply at jboss.com
Thu Aug 22 01:39:47 EDT 2013


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&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130822/93f02541/attachment.html 


More information about the jboss-user mailing list