日期:2014-05-17 浏览次数:20815 次
<bean id="dataSource_vas_group" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close"> <property name="driverClass" value="${jdbc.driverClassName}"/> <property name="jdbcUrl" value="${jdbc.url.vas_group}"/> <property name="user" value="${jdbc.username.vas_group}"/> <property name="password" value="${jdbc.password.vas_group}"/> <property name="maxPoolSize" value="5"/> <property name="maxIdleTime" value="300"/> </bean> <bean id="dataSource_oms_basic" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close"> <property name="driverClass" value="${jdbc.driverClassName}"/> <property name="jdbcUrl" value="${jdbc.url.vas_group}"/> <property name="user" value="${jdbc.username.vas_group}"/> <property name="password" value="${jdbc.password.vas_group}"/> <property name="maxPoolSize" value="10"/> <property name="maxIdleTime" value="300"/> </bean> <bean id="dataSource_oms_product" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close"> <property name="driverClass" value="${jdbc.driverClassName}"/> <property name="jdbcUrl" value="${jdbc.url.oms_product}"/> <property name="user" value="${jdbc.username.oms_product}"/> <property name="password" value="${jdbc.password.oms_product}"/> <property name="maxPoolSize" value="5"/> <property name="maxIdleTime" value="300"/> </bean>
------解决方案--------------------
上面的就o了,配置多个就多写几个数据源就可以了·
------解决方案--------------------