Search in sources :

Example 1 with DB2ConnectionPoolDataSource

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);
}
Also used : DB2ConnectionPoolDataSource(com.ibm.db2.jcc.DB2ConnectionPoolDataSource) PooledDataSource(com.cadenzauk.core.sql.testutil.PooledDataSource) Bean(org.springframework.context.annotation.Bean)

Aggregations

PooledDataSource (com.cadenzauk.core.sql.testutil.PooledDataSource)1 DB2ConnectionPoolDataSource (com.ibm.db2.jcc.DB2ConnectionPoolDataSource)1 Bean (org.springframework.context.annotation.Bean)1