<bean id="transactionManager_epri" class="org.springframework.orm.hibernate3.HibernateTransactionManager"> <property name="sessionFactory" ref="sessionFactory"/> </bean> <tx:advice id="txAdvice_erpi" transaction-manager="transactionManager_epri"> <tx:attributes> <tx:method name="update*" propagation="REQUIRED"/> <tx:method name="save*" propagation="REQUIRED"/> <tx:method name="delete*" propagation="REQUIRED"/> <tx:method name="insert*" propagation="REQUIRED"/> <tx:method name="create*" propagation="REQUIRED"/> <tx:method name="merge*" propagation="REQUIRED"/> <tx:method name="send*" propagation="SUPPORTS"/> <tx:method name="preparePractice" propagation="REQUIRED"/> <tx:method name="report" propagation="REQUIRED"/> <tx:method name="dispatch" propagation="REQUIRED"/> <tx:method name="find*" read-only="true"/> <tx:method name="select*" read-only="true"/> <tx:method name="is*" read-only="true"/> <tx:method name="*" read-only="true"/> </tx:attributes> </tx:advice> <aop:config> <aop:pointcut id="programmeBoPointCut" expression=" execution(* com.sgec.programme.bo..*(..))"/> <aop:pointcut id="programmeDaoPointCut" expression=" execution(* com.sgec.programme.dao..*(..))"/> <aop:advisor advice-ref="txAdvice_erpi" pointcut-ref="programmeDaoPointCut"/> <aop:advisor advice-ref="txAdvice_erpi" pointcut-ref="programmeBoPointCut"/> </aop:config>