spring怎么事务没有起作用 谢谢
<beans>
<!-- Hibernate SessionFactory -->
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource" ref="dataSource"/>
<property name="mappingResources">
<list>
<value>com/foxt/appcontrol/model/SoDAudit.hbm.xml</value>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">${hibernate.dialect}</prop>
<prop key="hibernate.show_sql">false</prop>
<prop key="hibernate.current_session_context_class">thread</prop>
<prop key="hibernate.jdbc.batch_size">20</prop> -->
</props>
</property>
</bean>
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory" ref="sessionFactory"/>
</bean>
<bean id="AuditDao" class="com.foxt.appcontrol.persistence.impl.hibernate.AuditDaoImpl">
<property name="sessionFactory" ref="sessionFactory"/>
</bean>
<bean id="txProxyTemplate" abstract="true"
class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
<property name="transactionManager" ref="transactionManager"/>
<property name="transactionAttributes">
<props>
<prop key="*">PROPAGATION_REQUIRED</prop>
</props>
</property>
</bean>
<bean id="realSoDAuditService" parent="txProxyTemplate">
<property name="target">
<bean class="com.foxt.appcontrol.application.impl.sodaudit.SoDAuditServiceImpl">
<property name="auditDao" ref="AuditDao"/>
</property>
</bean>
比如auditdao.deleteAudit()方法里面有deleteA(); deleteB();
这时候A被delete拉 b delete出错啦 但是事务却没有回滚, a实实在在的被delete拉