I have a spring datasource as following, in core module with its own spring context i don’t want to set maxActivetime
<bean id="wssModelDataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="net.sourceforge.jtds.jdbcx.JtdsDataSource"/>
<property name="url" value="com.wss.jdbc.ConnectionUrl=jdbc:jtds:sqlserver://x-x2/x_control_QA;appName=wss;sendStringParametersAsUnicode=false;loginTimeout=20;socketTimeout=180"/>
<property name="username" value="xxx"/>
<property name="password" value="xxx"/>
</bean>
I have dependent module which depends upon core module which have its own spring context and in this component i want to set datasource maxIdle time
<property name="wssModelDataSource.maxIdle" value="40"/>
and there are many other modules which also depend upon wssModelDataSource but i dno’t want to change maxIdle time for them.
my question is if i put <property name="wssModelDataSource.maxIdle" value="40"/> at the root of spring context file it gives me error
Create BeanFactoryPostProcessor implementation and override postProcessBeanFactory method