Configuring the connection pool using data source

About this task

In WAS managed environment, data source can be used directly. The configuration only needs a little change in this case. The dataSource attribute is used instead of attributes of JDBC drivers. The pooling function of BTT connection pool can be disabled by the disablePool attribute. If disablePool is set to true, the pooling function of data source is used directly instead of BTT connection pool.

<com.ibm.btt.bc.common.pool.ConnectionPoolImpl id="JDBCDAOPool"  disablePool="true">
     <com.ibm.btt.bc.common.pool.JdbcConnectionConfig  Injection="jdbcConfig" dataSource="jdbc/BTTEJ" />	 
</com.ibm.btt.bc.common.pool.ConnectionPoolImpl>

Note that if the dataSource attribute and JDBC Driver attributes are set at same time, the JDBC Driver attributes are ignored, and the dataSource attribute is used.