"To create the transaction manager, you'll want to create an instance of
JmsTransactionManager and give it an XA transaction-capable connection
factory."
This doesn't make perfect sense when the documentation for
JmsTransactionManager states that XA transactions are not supported.
"This local strategy is an alternative to executing JMS operations
within JTA transactions. Its advantage is that it is able to work in any
environment, for example a standalone application or a test suite. It is
not able to provide XA transactions, for example to share transactions
with data access."
The code snippet agrees with the documentation there, but shouldn't that
be JtaTransactionManager? I haven't tried it, so it could be correct.
If so, that should be clarified in Javadoc and the manual.
--
Christopher G. Stach II
|