AnsweredAssumed Answered

Websphere transaction management

Question asked by mvharish on Dec 28, 2013
Latest reply on Nov 21, 2014 by trademak
Hi, My project environment is jdk1.6,Websphere8.5 with activiti 5.14 .We use two XA datasources with CMP ,the first XA datasource is used to store the user related data and second one is being used by Activiti engine. and the rollback should happen in the case of exceptions at any of the scenario ie either while storing user data some exception or while doing some transition in activiti.

I was trying to do activiti cfg setup .It will be helpfull if i get some pointers to start with.

Will the below configuration will solve the problem ? where the datasource is a XA one.

   <bean id="transactionManager"
      class="org.springframework.transaction.jta.WebSphereUowTransactionManager"/>

   <!– process engine configuration –>
   <bean id="processEngineConfiguration"
      class="org.activiti.spring.SpringProcessEngineConfiguration">
      <property name="dataSourceJndiName" value="jdbc/activitiDSH2" />
      <property name="transactionManager" ref="transactionManager" />
      <property name="transactionsExternallyManaged" value="true" />
      <property name="databaseSchemaUpdate" value="false" />

      <property name="mailServerHost" value="localhost" />
       <property name="mailServerPort" value="2525" /> 

   </bean>

Outcomes