<bean id="propertyPlaceholderConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>/biz/datasource_base.properties</value>
<value>/biz/datasource_taskservice.properties</value>
</list>
</property>
</bean>
<bean id="taskserviceDbcpDataSource" parent="dbcpDataSource">
<property name="driverClassName"
value="${alibaba.intl.biz.datasource.base.mysql.driver}" />
<property name="url"
value="${alibaba.intl.biz.datasource.taskservice.url}" />
<property name="username"
value="${alibaba.intl.biz.datasource.taskservice.username}" />
<property name="password"
value="${alibaba.intl.biz.datasource.taskservice.password}" />
</bean>
<bean id="taskserviceDataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName" value="java:TaskServiceDS" />
<property name="jndiTemplate" ref="jndiTemplate" />
<property name="defaultObject" ref="taskserviceDbcpDataSource" />
</bean>
<bean id="taskserviceSqlMapClient" class="org.springframework.orm.ibatis.SqlMapClientFactoryBean"
abstract="true">
<property name="dataSource" ref="taskserviceDataSource" />
</bean>
<bean id="taskserviceTransactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="taskserviceDataSource" />
</bean>
<bean id="taskServiceAttributeSource" class="org.springframework.transaction.interceptor.NameMatchTransactionAttributeSource">
<property name="properties">
<props>
<prop key="*">PROPAGATION_REQUIRED,-Exception</prop>
</props>
</property>
</bean>
<bean id="taskserviceTransactionDefinition" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean" abstract="true">
<property name="transactionManager" ref="taskserviceTransactionManager" />
<property name="transactionAttributeSource" ref="taskServiceAttributeSource" />
</bean>