<bean id="dataSource1"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="${jdbc.driverClass}" />
<property name="url" value="${jdbc.url}" />
<property name="username" value="${jdbc.user}" />
<property name="password" value="${jdbc.password}" />
</bean>
<bean id="dataSource2"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="${server.jdbc.driverClass}" />
<property name="url" value="${server.jdbc.url}" />
<property name="username" value="${server.jdbc.user}" />
<property name="password" value="${server.jdbc.password}" />
</bean>
<bean id="XXXX1DAO" class="com.XXXX.XXXX.db.XXXXDAO">
<property name="dataSource">
<ref local="dataSource1" />
</property>
<property name="sqlMapClient">
<ref local="sqlMapClient" />
</property>
</bean>
<bean id="XXXX2DAO" class="com.XXXX.XXXX.db.XXXX2DAO">
<property name="dataSource">
<ref local="dataSource2" />
</property>
<property name="sqlMapClient">
<ref local="sqlMapClient" />
</property>
</bean>