<bean id="com.ex.MemberDao" class="com.ex.MemberDaoImpl">
<property name="dataSource" ref="memberDatabaseDataSource"/>
</bean>
<bean id="com.ex.StoreDao" class="com.ex.StoreDaoImpl">
<property name="dataSource" ref="storeDatabaseDataSource"/>
</bean>
<tx:annotation-driven transaction-manager="memberTransactionManager"/>
<tx:annotation-driven transaction-manager="storeTransactionManager"/>
<bean id="memberTransactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource"><ref bean="memberDatabaseDataSource"/></property>
</bean>
<bean id="storeTransactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource"><ref bean="storeDatabaseDataSource"/></property>
</bean>
'데이터베이스' 카테고리의 다른 글
SQL Developer 실행시 오류 (0) | 2012.08.01 |
---|---|
두 날짜 사이 날짜 구하기 (0) | 2012.05.24 |
[ORACLE] tablespace 실 사용량 가져오는 쿼리 (0) | 2012.03.07 |
오라클 계정 생성 (0) | 2012.01.30 |
오라클 SID와 Service Name의 차이 (0) | 2012.01.26 |