1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
<bean id="operationManager" parent="txProxyTemplateAgDatasource">
<property name="target">
<bean class="com.mycom.services.impl.OperationManagerImp l">
<property name="dao" ref="operationDAO"/>
</bean>
</property>
<!-- Override default transaction attributes b/c of UserExistsException -->
<property name="transactionAttributes">
<props >
<prop key="insert*">PROPAGATION_REQUIRED</prop>
<prop key="remove*">PROPAGATION_REQUIRED</prop>
<prop key="update*">PROPAGATION_REQUIRED</prop>
<prop key="doLock">PROPAGATION_NEVER</prop>
<prop key="doCommit">PROPAGATION_NEVER</prop>
<prop key="*">PROPAGATION_REQUIRED,readOnly</prop>
</props>
</property>
</bean> |
Partager