Is it possible to publish Spring configuration for your DataSource. I would expect something like:
<bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close"> <property name="driverClass" value="oracle.jdbc.driver.OracleDriver"/> <property name="jdbcUrl" value="${jdbc.connection.url}"/> <property name="user" value="${jdbc.connection.username}"/> <property name="password" value="${jdbc.connection.password}"/> <property name="initialPoolSize" value="5"/> <property name="minPoolSize" value="5"/> <property name="maxPoolSize" value="100"/> </bean>
Using another bean, where the data source is passed by reference:
<bean id="mySampleDao" class="com.example.dao.MySampleDao"> <property name="dataSource" ref="dataSource" /> </bean>
Is that what you have?
What version of Oracle are you using?
source share