AnsweredAssumed Answered

DataSourceTransactionManager or JTATransactionManager

Question asked by rangoo on Feb 8, 2014
Latest reply on Feb 11, 2014 by rangoo
I have 3 applications using same activiti datasource. Each App doing different things though

1st App - Reads JMS and triggers workflows
2nd App - Continues Async WorkFlows
3rd App - REST API

I am currently using datasourcetransactionmanager.

<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
    <property name="dataSource" ref="dataSource" />
  <bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
    <property name="dataSource" ref="dataSource" />
    <property name="transactionManager" ref="transactionManager" />
    <property name="databaseSchemaUpdate" value="true" />
    <property name="jobExecutorActivate" value="false" />

I guess in this case Spring creates 3 transaction Managers but the Connection pool is the same.  Wondering If I should use jtaTransactionManager and leave it to the App server so that single transaction manager takes care of all transactions. Suggestions?