两个dataSource
<bean id="dataSource" class="org.logicalcobwebs.proxool.ProxoolDataSource" destroy-method="close">
<property name="driver">
<value>${jdbc.driverClassName}</value>
</property>
<property name="driverUrl">
<value>${jdbc.url}</value>
</property>
<property name="user">
<value>${jdbc.username}</value>
</property>
<property name="password">
<value>${jdbc.password}</value>
</property>
<property name="delegateProperties">
<value>user=${jdbc.username},password=${jdbc.password}</value>
</property>
<property name="maximumConnectionCount">
<value>10</value>
</property>
</bean>
<bean id="rmzxdataSource" class="org.logicalcobwebs.proxool.ProxoolDataSource" destroy-method="close">
<property name="driver">
<value>${jdbc.rmzxdriverClassName}</value>
</property>
<property name="driverUrl">
<value>${jdbc.rmzxurl}</value>
</property>
<property name="user">
<value>${jdbc.rmzxusername}</value>
</property>
<property name="password">
<value>${jdbc.rmzxpassword}</value>
</property>
<property name="delegateProperties">
<value>user=${jdbc.rmzxusername},password=${jdbc.rmzxpassword}</value>
</property>
<property name="maximumConnectionCount">
<value>10</value>
</property>
</bean>
分别调用上面两datasource
<bean id="contentDao" class="com.rm.cms.dao.impl.ContentDaoImpl">
<property name="dataSource">
<ref bean="dataSource"/>
</property>
<property name="sqlMapClient">
<ref local="sqlMapClient" />
</property>
</bean>
<bean id="roomDao" class="com.rm.cms.dao.impl.RoomDaoImpl">
<property name="dataSource">
<ref bean="rmzxdataSource"/>
</property>
<property name="sqlMapClient">
<ref local="sqlMapClient" />
</property>
</bean>