cancel
Showing results for 
Search instead for 
Did you mean: 

Using Apache Geronimo TransactionManager?

bapu
Champ in-the-making
Champ in-the-making
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
1 REPLY 1

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
that is because the real transactionmanager is nog a springbean. You should put the spring wrapper there. See the spring docs
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.