<!--weblogic-->
<bean id="jtaTxManager" class="org.springframework.transaction.jta.WebLogicJtaTransactionManager">
<property name="transactionManagerName" value="javax.transaction.TransactionManager" />
</bean>
<!--websphere-->
<bean id="jtaTxManager" class="org.springframework.transaction.jta.WebSphereUowTransactionManager" />
<tx:advice id="txAdvice" transaction-manager="jtaTxManager">
<tx:attributes>
<tx:method name="select*" read-only="true" />
<tx:method name="query*" read-only="true" />
<tx:method name="list*" read-only="true" />
<tx:method name="detail*" read-only="true" />
<tx:method name="insert*" />
<tx:method name="update*" />
<tx:method name="delete*" />
<tx:method name="transfer*" />
</tx:attributes>
</tx:advice>
<aop:config>
<aop:pointcut id="transactionPointcut"
expression="execution(public * com.wbd.ngcrm.example.dictitem.service.*.*(..))" />
<aop:advisor advice-ref="txAdvice" pointcut-ref="transactionPointcut" />
</aop:config>
<!-- dataSource begin -->
<bean id="dataSource.yy1a" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName">
<value>jdbc/yy1a</value>
</property>
</bean>
<bean id="dataSource.yy1b" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName">
<value>jdbc/yy1b</value>
</property>
</bean>
<bean id="dataSource.yy2a" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName">
<value>jdbc/yy2a</value>
</property>
</bean>
<bean id="dataSource.yy2b" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName">
<value>jdbc/yy2b</value>
</property>
</bean>