spring3 +hibernate3的事务配置不生效,求帮助



<tx:advice id="txAdvice" transaction-manager="hibernateTransactionManager">
    <tx:attributes>
        <tx:method name="get*" read-only="true"/>
        <tx:method name="query*" read-only="true"/>
        <tx:method name="*" propagation="REQUIRED" rollback-for="Exception"/>
    </tx:attributes>
</tx:advice>

<aop:config>
    <aop:pointcut id="serviceOperation" expression="execution(* com.bp.pub.service.impl.*.*(..))" />
    <aop:advisor advice-ref="txAdvice" pointcut-ref="serviceOperation" />
</aop:config>

父子上下文的问题,把事务放在子context中就可以了。

事物不起作用,有好多种情况,看看你写的方法名是否是拦截了