<!-- SERVICE T01 -->
<bean id="SendGoodsService"
class="com.chinaway.interf.service.impl.SendGoodsService">
<property name="drpGoodsDAO">
<ref local="DRPGoodsDAO" />
</property>
<property name="drpGoodsItemDAO">
<ref local="DRPGoodsItemDAO" />
</property>
<property name="tmsConsignGoodsDAO">
<ref local="TMSConsignGoodsDAO" />
</property>
<property name="tmsConsignGoodsItemDAO">
<ref local="TMSConsignGoodsItemDAO" />
</property>
<property name="tmsConsignMentDAO">
<ref local="TMSConsignMentDAO" />
</property>
<property name="tmsOTDTimeShipperDAO">
<ref local="TMSOTDTimeShipperDAO" />
</property>
<property name="tmsConsignDrpDAO">
<ref local="TMSConsignDrpDAO" />
</property>
<property name="logDAO">
<ref local="TMSXdiLogDAO" />
</property>
</bean>
<!--事务管理配置-->
<bean id="SendGoodsServiceT"
class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
<property name="transactionManager">
<ref bean="txManager" />
</property>
<property name="target">
<ref bean="SendGoodsService" />
</property>
<property name="transactionAttributes">
<props>
<prop key="*">PROPAGATION_REQUIRED,-Exception</prop>
</props>
</property>
</bean>----
多谢!
<bean id="SendGoodsService"
class="com.chinaway.interf.service.impl.SendGoodsService">
<property name="drpGoodsDAO">
<ref local="DRPGoodsDAO" />
</property>
<property name="drpGoodsItemDAO">
<ref local="DRPGoodsItemDAO" />
</property>
<property name="tmsConsignGoodsDAO">
<ref local="TMSConsignGoodsDAO" />
</property>
<property name="tmsConsignGoodsItemDAO">
<ref local="TMSConsignGoodsItemDAO" />
</property>
<property name="tmsConsignMentDAO">
<ref local="TMSConsignMentDAO" />
</property>
<property name="tmsOTDTimeShipperDAO">
<ref local="TMSOTDTimeShipperDAO" />
</property>
<property name="tmsConsignDrpDAO">
<ref local="TMSConsignDrpDAO" />
</property>
<property name="logDAO">
<ref local="TMSXdiLogDAO" />
</property>
</bean>
<!--事务管理配置-->
<bean id="SendGoodsServiceT"
class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
<property name="transactionManager">
<ref bean="txManager" />
</property>
<property name="target">
<ref bean="SendGoodsService" />
</property>
<property name="transactionAttributes">
<props>
<prop key="*">PROPAGATION_REQUIRED,-Exception</prop>
</props>
</property>
</bean>----
多谢!
<ref bean="SendGoodsService" />
</property>
好像不可不用
<bean id="transactionServiceTemplement" abstract="true" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
<property name="transactionManager">
<ref bean="transactionManager"/>
</property>
<property name="transactionAttributes">
<props>
<prop key="save*">PROPAGATION_REQUIRED</prop>
<prop key="update*">PROPAGATION_REQUIRED</prop>
<prop key="remove*">PROPAGATION_REQUIRED</prop>
<prop key="*T">PROPAGATION_REQUIRED</prop>
</props>
</property>
</bean>