New issue 203 by axel.fontai...@gmail.com: JTA & XA DataSource
support
http://code.google.com/p/flyway/issues/detail?id=203
Previously JTA & XA DataSources were supported by specifying a JTA
transaction manager using the setTransactionManager method.
As part of the removal of the Spring dependency, this method will be going
away in the next release.
An alternative could be JTA & XA DataSource autodetection, fetching the
UserTransaction object from JNDI and starting a new transaction that way.
If you do require this, please star this issue and add a comment with the
specific runtime environment (AppServer + Version) you use.
These types of "autodetecting" are likely to fail and have the danger of
blocking certain environments.
Proposal: let the application set the UserTransaction object in Flyway. You
don't need any spring to control it and it is part of the standard.
Hi Sebastian,
Thanks for your feedback. I still lean in favor of autodetecting though.
Spring seems to have no problem doing this successfully for almost any JEE
environment under the sun, so it must be possible.
This was also the reason why I asked for details about environments people
require. This way it can be made sure they are supported. And if one is
missing, it can always be added in the next release.
The reason I favor autodetection is that it allows the JTA dependency
(UserTransaction class) to be optional. Adding a setUserTransaction method
would force everyone to pull it in. This would of course defeat the purpose
of the effort of making Flyway a zero required-dependency library.
Cheers
Axel