users@glassfish.java.net

Spring JTATransactionManager and XATransactions

From: <glassfish_at_javadesktop.org>
Date: Mon, 21 Jul 2008 15:39:01 PDT

Hey

I'm trying to us JMSTemplate (Spring class that sends a message textmessage) within glassfish XATransaction. I can see that an XATransaction gets started and I can freeze the transaction within the server. But when i send a message it gets posted before the transactions commited.

Thats a problem because database content is not commited before the message is processed.

The QueueConnectionFactory is setup to use XATransaction and I can se that the session and connection that spring uses are XASession and XAConnection.

Spring only delegates transaction handling to java:comp/UserTransaction. See http://static.springframework.org/spring/docs/2.5.x/api/org/springframework/transaction/jta/JtaTransactionManager.html


Does anybody have a suggestion to whats wrong?
[Message sent by forum member 'rulien' (rulien)]

http://forums.java.net/jive/thread.jspa?messageID=288219