Search in sources :

Example 1 with FBConnectionPoolDataSource

use of org.firebirdsql.ds.FBConnectionPoolDataSource in project siesta by cadenzauk.

the class FirebirdConfig method dataSource.

@Bean
public DataSource dataSource() throws SQLException {
    FBConnectionPoolDataSource pool = new FBConnectionPoolDataSource();
    pool.setServerName("localhost");
    pool.setUser("SIESTA");
    pool.setPassword("siesta");
    pool.setDatabaseName("siesta");
    pool.setCharSet("utf-8");
    return new PooledDataSource(pool);
}
Also used : FBConnectionPoolDataSource(org.firebirdsql.ds.FBConnectionPoolDataSource) PooledDataSource(com.cadenzauk.core.sql.testutil.PooledDataSource) Bean(org.springframework.context.annotation.Bean)

Aggregations

PooledDataSource (com.cadenzauk.core.sql.testutil.PooledDataSource)1 FBConnectionPoolDataSource (org.firebirdsql.ds.FBConnectionPoolDataSource)1 Bean (org.springframework.context.annotation.Bean)1