AnsweredAssumed Answered

Using Apache Geronimo TransactionManager?

Question asked by bapu on Aug 17, 2011
Latest reply on Aug 17, 2011 by ronald.van.kuijk
How to configure activiti to use Apache? 

I am getting this error:

Bean named 'transactionManager' must be of type [org.springframework.transaction.PlatformTransactionManager], but was actually of type [org.apache.geronimo.transaction.manager.GeronimoTransactionManager]

My spring configuration , which is Based on the activiti-spring-example  configuration,  looks something like this —

<bean name="transactionManager" class="org.apache.geronimo.transaction.manager.GeronimoTransactionManager" />

<bean id="processEngineConfiguration" class="org.activiti.engine.impl.cfg.JtaProcessEngineConfiguration">
   <property name="jdbcUrl" value="jdbc:h2:mem:activiti;DB_CLOSE_DELAY=1000" />
       <property name="jdbcDriver" value="org.h2.Driver" />
       <property name="jdbcUsername" value="sa" />
       <property name="jdbcPassword" value="" />
   
   <property name="transactionManager" ref="transactionManager" />
   <property name="databaseSchemaUpdate" value="true" />
</bean>

<bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean">
      <property name="processEngineConfiguration" ref="processEngineConfiguration" />
</bean>
   
<tx:annotation-driven transaction-manager="transactionManager" />


Thanks in advance,
bapu

Outcomes