这个不是事务 那这是什么呢
解决方案 »
- FLEX中怎样才能使得as和mxml相互得到各自的引用
- model层的类怎么直接赋值给dto层的类
- 关于Struts2中token使用方面的疑问!!!
- 一条sql语句的执行顺序。
- jxl处理excel文件问题
- url传中文问题
- spring中的quartz不要并发执行 要设置哪呢
- [求助]请问怎么设置JBOSS4.0.0含(Tomcat5.0)的虚拟目录
- 求在JMS里面使用XASESSION完成分布式两阶段提交事务处理的代码 100分 着急 在线
- 凌晨3:43了...今天未解决的问题...大家看看...100敬送
- mina iobuffer 问题求救 ............ 急 急 急 急 急
- 代码块与函数间的同步,其中一个线程只运行了一次
<tx:advice id="txAdvice" transaction-manager="txManager">
<tx:attributes>
<!-- 需要由交给spring的aop来进行代理的方法的集合,如果应用有自己的方法需有由spring来进行事务控制必须添加方法 --> <!-- 读取数据方法,一般采用只读事务 -->
<tx:method name="get*" read-only="true" />
<tx:method name="load*" read-only="true" />
<tx:method name="select*" read-only="true" />
<tx:method name="query*" read-only="true" />
<tx:method name="criteria*" read-only="true" />
<tx:method name="find*" read-only="true" />
<tx:method name="count*" read-only="true" />
<!--其他方法,如save,update,insert,monitor等对数据库进行写入操作的方法,当产生ServiceException进行回滚 -->
<tx:method name="submit*" read-only="false" rollback-for="ServiceException" />
<tx:method name="enable*" read-only="false" rollback-for="ServiceException" />
<tx:method name="disable*" read-only="false" rollback-for="ServiceException" />
<tx:method name="insert*" read-only="false" rollback-for="ServiceException" />
<tx:method name="update*" read-only="false" rollback-for="ServiceException" />
<tx:method name="lock*" read-only="false" rollback-for="ServiceException"
propagation="REQUIRED" /><aop:config>
<aop:pointcut id="serviceOperation"
expression="execution(* com.jc.qrmp..*Service.*(..))" />
<aop:pointcut id="approveInterceptor"
expression="execution(* com.jc.qrmp.aop.ApproveInterceptor.*(..))" />
<aop:advisor pointcut-ref="serviceOperation" advice-ref="txAdvice" />
<aop:advisor pointcut-ref="approveInterceptor" advice-ref="txAdvice" />
</aop:config>
只是代码片断 ,供你参考