use of com.ibm.db2.jcc.DB2ConnectionPoolDataSource in project siesta by cadenzauk.
the class Db2Config method dataSource.
@Bean
public DataSource dataSource() throws SQLException {
DB2ConnectionPoolDataSource pool = new DB2ConnectionPoolDataSource();
pool.setDatabaseName("SIESTA");
pool.setDriverType(2);
pool.setConcurrentAccessResolution(1);
return new PooledDataSource(pool);
}
Aggregations