Hello,

I need a XA transaction between a JMS queue and a database. To achieve this, I have set the transactionManager of my MessageListenerContainer to a JtaTransactionManager (using jenks library, as I'm not on a J2EE server).

Code:
<bean id="transactionManager" class="org.springframework.transaction.jta.JtaTransactionManager">
	<constructor-arg>
		<bean class="org.jencks.factory.TransactionManagerFactoryBean" />
	</constructor-arg>
</bean>
However, when a RuntimeException occurs during the process of a message after the insertion in database, the database transaction is commited anyway and the same message is played again.
In other words, the JMS transaction is rollbacked but not the database transaction.

Any idea why?
Thank you !

Pierre