This content has been marked as final.
Show 2 replies
-
1. Re: JMS + other JDBC operations in a single transaction
jsalvo Feb 25, 2006 12:41 AM (in response to jsalvo)Okay ... found this post:
http://wiki.jboss.org/wiki/Wiki.jsp?page=HowDoIMakeJMSWorkInJTATransaction
... but still sort of contradicts this info:
http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfigJBossMQDB -
2. Re: JMS + other JDBC operations in a single transaction
peter.knuts Mar 29, 2006 8:26 AM (in response to jsalvo)Hi,
I have struggled with the same problem for a few days.
An article describing the solution can be found on http://www.odi.ch/weblog/posting.php?posting=210
I have verified that it work to send a JMS message and update a database in the same transaction (using database persistent JMS messages).
Basically you will have to look up a JTA enabled JMS connection factory using the JNDI name java:/JmsXA instead of ConnectionFactory.
I don't use an XA enabled datasource (only local-tx-datasource) and it works fine for me.
Regards Peter