I did
[CODE] <bean id="txManager"
class="org.springframework.transaction.jta.JtaTran sactionManager"/>[/QUOTE]
and
Code:
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource" ref="dataSource"/>
<property name="mappingResources">
<value>com/test/dao/hibernate/hibernate.hbm.xml</value>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</prop>
</props>
</property>
<property name="jtaTransactionManager" ref="txManager"/>
</bean>
I have this exception:
Code:
PropertyAccessException 1: org.springframework.beans.TypeMismatchException: Fail
ed to convert property value of type [org.springframework.transaction.jta.JtaTra
nsactionManager] to required type [javax.transaction.TransactionManager] for pro
perty 'jtaTransactionManager'; nested exception is java.lang.IllegalArgumentExce
ption: No matching editors or conversion strategy found
How do I set the jtaTransactionManager et which one?