Announcement Announcement Module
Collapse
No announcement yet.
Using JtaTransactionManager, database transaction is not rollbacked Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using JtaTransactionManager, database transaction is not rollbacked

    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

  • #2
    This probably has nothing to do with Spring Integration. I'll give it a try in Spring Forum first.
    Sorry!

    Comment

    Working...
    X