Search in sources :

Example 1 with ManagedDataSourceWithRecovery

use of org.apache.openejb.resource.jdbc.dbcp.ManagedDataSourceWithRecovery in project tomee by apache.

the class DefaultDataSourceCreator method poolManagedWithRecovery.

@Override
public DataSource poolManagedWithRecovery(final String name, final XAResourceWrapper xaResourceWrapper, final String driver, final Properties properties) {
    final BasicManagedDataSource ds = new ManagedDataSourceWithRecovery(name, xaResourceWrapper);
    ds.setDriverClassName(driver);
    build(BasicManagedDataSource.class, ds, properties);
    return ds;
}
Also used : ManagedDataSourceWithRecovery(org.apache.openejb.resource.jdbc.dbcp.ManagedDataSourceWithRecovery) BasicManagedDataSource(org.apache.openejb.resource.jdbc.dbcp.BasicManagedDataSource)

Aggregations

BasicManagedDataSource (org.apache.openejb.resource.jdbc.dbcp.BasicManagedDataSource)1 ManagedDataSourceWithRecovery (org.apache.openejb.resource.jdbc.dbcp.ManagedDataSourceWithRecovery)1