This content has been marked as final.
Show 2 replies
-
1. Re: EJB DB access, JMS and Transactions
adrian.brock Nov 5, 2003 8:32 AM (in response to mlipp)Another frequently asked question.
Is the search function really so hard to find.
I will repeat the answer (but this is the only time this month).
JBossMQ's use of the db is irrelvent, it does so in a different
transaction.
If you have multiple resources in a transaction (JMS and EJB)
you don't need an XA datasource,
BUT if the commit fails you will get inconsistent results.
Two phase commit
JMS -> prepare (ok)
EJB -> DB prepare (Not XA - no support for prepare)
JMS -> commit (ok)
EJB -> commit (only supports one phase, if it fails - VERY BAD)
Regards,
Adrian -
2. Re: EJB DB access, JMS and Transactions
mlipp Nov 5, 2003 8:36 AM (in response to mlipp)Thank you. BTW, I did search the forum - maybe using the wrong keywords.
- Michael