Exemplo n.º 1
0
 @Override
 public DataSource poolManaged(
     final String name, final String driver, final Properties properties) {
   final BasicManagedDataSource ds = new BasicManagedDataSource(name);
   ds.setDriverClassName(driver);
   build(BasicManagedDataSource.class, ds, properties);
   return ds;
 }
Exemplo n.º 2
0
 @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;
 }