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;
}
Aggregations