原创 异常fetch out of sequence的生成原因收藏

主要是因为使用ExpressDSO.save()(泛指一些需要事务控制,即可提交和回滚支持的方法)时没有将其作为事务提交,在spring.xml里经过以下配置后就可以了
<!-- djb add : AtomDealModifySvc 20050128 -->
        <bean id="atomDealModifySvcImpl" singleton="true"
  class="com.ztesoft.ds.bizsvc.modify.AtomDealModifySvcImpl">
  <property name="expressDsoSvc">
   <ref local="expressDsoSvcImpl" />
  </property>
 </bean>
        <!--djb add transaction control 20050201-->
        <bean id="atomDealModifySvc"
  class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
  <property name="transactionManager">
   <ref bean="transactionManager" />
  </property>
  <property name="target">
   <ref bean="atomDealModifySvcImpl" />
  </property>
  <property name="transactionAttributes">
   <props>
    <prop key="*">PROPAGATION_REQUIRED</prop>
   </props>
  </property>
 </bean>
        <!--djb add transaction control 20050201-->
        <!-- djb add : AtomDealModifySvc 20050128 -->

发表于 @ 2005年02月02日 10:23:00|评论(loading...)

新一篇: struts Action 和 html中框架的配合使用一例 | 旧一篇: spring 作为bean factory

Csdn Blog version 3.1a
Copyright © qlampskyface