use of com.atomikos.jdbc.AtomikosDataSourceBean in project mybatis.flying by limeng32.
the class DataSourceConfig method dataSource2.
@Bean("dataSource2")
public DataSource dataSource2() {
AtomikosDataSourceBean ds = new AtomikosDataSourceBean();
ds.setXaDataSource(xaDataSource2());
ds.setUniqueResourceName("testdb2");
ds.setMinPoolSize(1);
ds.setMaxPoolSize(3);
ds.setMaxIdleTime(60);
return ds;
}
use of com.atomikos.jdbc.AtomikosDataSourceBean in project mybatis.flying by limeng32.
the class DataSourceConfig method dataSource1.
@Bean("dataSource1")
@Primary
public AtomikosDataSourceBean dataSource1() {
AtomikosDataSourceBean ds = new AtomikosDataSourceBean();
ds.setXaDataSource(xaDataSource1());
ds.setUniqueResourceName("testdb");
ds.setMinPoolSize(1);
ds.setMaxPoolSize(3);
ds.setMaxIdleTime(60);
return ds;
}
Aggregations