public class AtomikosConnectionProvider
extends java.lang.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(java.sql.Connection connection) |
void |
configure(java.util.Properties props) |
java.sql.Connection |
getConnection() |
boolean |
supportsAggressiveRelease() |
public void close()
throws org.hibernate.HibernateException
close in interface org.hibernate.connection.ConnectionProviderorg.hibernate.HibernateExceptionpublic void closeConnection(java.sql.Connection connection)
throws java.sql.SQLException
closeConnection in interface org.hibernate.connection.ConnectionProviderjava.sql.SQLExceptionpublic void configure(java.util.Properties props)
throws org.hibernate.HibernateException
configure in interface org.hibernate.connection.ConnectionProviderorg.hibernate.HibernateExceptionpublic java.sql.Connection getConnection()
throws java.sql.SQLException
getConnection in interface org.hibernate.connection.ConnectionProviderjava.sql.SQLExceptionpublic boolean supportsAggressiveRelease()
supportsAggressiveRelease in interface org.hibernate.connection.ConnectionProviderCopyright © 2019. All Rights Reserved.