Hi, I have few questions regarding JDBC Service Specification.
1) Should DataSource returned by DataSourceFactory#createDataSource return DataSource that pools connections (let's name it "pooled" DataSource) or it should return DataSource that will provider "physical" connections (let's name it "raw" DataSource)? 2) What does DataSourceFactory#JDBC_INITIAL_POOL_SIZE and DataSourceFactory#MAX_POOL_SIZE mean? In my understanding, they only make sense if applied to the createDataSource and answer to the first question is positive. Those properties do not make sense for ConnectionPoolDataSource, since ConnectionPoolDataSource should always create new physical connections (see PooledConnection). Should not the DataSourceFactory leave pool features to the separate bundle/service that will provide "pooled" DataSource on top of the "raw" DataSource/ConnectionPoolDataSource/Driver/XADataSource returned by the DataSourceFactory? In that case, properties like JDBC_INITIAL_POOL_SIZE, JDBC_MAX_IDLE_TIME, MAX_POOL_SIZE do not make sense. -- WBR, Ivan S. Dubrov _______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
