public class AtomikosConnectionProvider extends Object implements org.hibernate.connection.ConnectionProvider
To use the AtomikosConnectionProvider specify this class as the
value of the hibernate.connection.provider_class of the
hibernate configuration properties.
You then have to configure the AtomikosDataSourceBean properties
by prefixing them with hibernate.connection.atomikos.
Eg: hibernate.connection.atomikos.uniqueResourceName
hibernate.connection.atomikos.xaDataSourceClassName
hibernate.connection.atomikos.xaProperties.databaseName
...
Add a hibernate.connection.atomikos.nonxa=true property if you want
to configure a AtomikosNonXADataSourceBean instead.
NOTE: if you use the Hibernate XML config mechanism, then the prefix should be connection.atomikos instead (without hibernate prefix).
| Constructor and Description |
|---|
AtomikosConnectionProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closeConnection(Connection connection) |
void |
configure(Properties props) |
Connection |
getConnection() |
boolean |
supportsAggressiveRelease() |
public void close()
throws org.hibernate.HibernateException
close in interface org.hibernate.connection.ConnectionProviderorg.hibernate.HibernateExceptionpublic void closeConnection(Connection connection) throws SQLException
closeConnection in interface org.hibernate.connection.ConnectionProviderSQLExceptionpublic void configure(Properties props) throws org.hibernate.HibernateException
configure in interface org.hibernate.connection.ConnectionProviderorg.hibernate.HibernateExceptionpublic Connection getConnection() throws SQLException
getConnection in interface org.hibernate.connection.ConnectionProviderSQLExceptionpublic boolean supportsAggressiveRelease()
supportsAggressiveRelease in interface org.hibernate.connection.ConnectionProviderCopyright © 2023. All rights reserved.