...
If your database vendor does not provide an XADataSource, you can use Atomikos's com.atomikos.jdbc.nonxa.NonXADataSourceBean to allow your database connections to be controlled by the transaction manager. For an example of this, see the last section of Step 3 for the more "Configure DataSources that are transaction aware" for recent versions of Atomikos.