...
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 Configure DataSources that are transaction aware (same as the last section of Step 3 for the more recent versions of Atomikos).