解决方案 »

  1.   


    是在同一个事务里呀。
    <!-- spring 事务管理器 -->
        <bean id="transactionManager"
            class="org.springframework.transaction.jta.JtaTransactionManager">
            <property name="transactionManager" ref="atomikosTransactionManager"/>
            <property name="userTransaction" ref="atomikosUserTransaction" />
            <property name="allowCustomIsolationLevels" value="true"/> 
        </bean>
      

  2.   


    是在同一个事务里呀。
    <!-- spring 事务管理器 -->
        <bean id="transactionManager"
            class="org.springframework.transaction.jta.JtaTransactionManager">
            <property name="transactionManager" ref="atomikosTransactionManager"/>
            <property name="userTransaction" ref="atomikosUserTransaction" />
            <property name="allowCustomIsolationLevels" value="true"/> 
        </bean>

    同一个事务里你贴这个能证明?你这两个操作是在service层有@Transactional注解的同一个方法里?
      

  3.   


    是在同一个事务里呀。
    <!-- spring 事务管理器 -->
        <bean id="transactionManager"
            class="org.springframework.transaction.jta.JtaTransactionManager">
            <property name="transactionManager" ref="atomikosTransactionManager"/>
            <property name="userTransaction" ref="atomikosUserTransaction" />
            <property name="allowCustomIsolationLevels" value="true"/> 
        </bean>

    同一个事务里你贴这个能证明?你这两个操作是在service层有@Transactional注解的同一个方法里?请问这个No properties path set - looking for transactions.properties in classpath...
    Using init file: /D:/Eclipse_Workspace/Test/build/classes/transactions.properties控制台输出有没有影响呀?
      

  4.   


    是在同一个事务里呀。
    <!-- spring 事务管理器 -->
        <bean id="transactionManager"
            class="org.springframework.transaction.jta.JtaTransactionManager">
            <property name="transactionManager" ref="atomikosTransactionManager"/>
            <property name="userTransaction" ref="atomikosUserTransaction" />
            <property name="allowCustomIsolationLevels" value="true"/> 
        </bean>

    同一个事务里你贴这个能证明?你这两个操作是在service层有@Transactional注解的同一个方法里?请问这个No properties path set - looking for transactions.properties in classpath...
    Using init file: /D:/Eclipse_Workspace/Test/build/classes/transactions.properties控制台输出有没有影响呀?

    没影响。他是INFO级别的并非ERROR级别的
      

  5.   


    是在同一个事务里呀。
    <!-- spring 事务管理器 -->
        <bean id="transactionManager"
            class="org.springframework.transaction.jta.JtaTransactionManager">
            <property name="transactionManager" ref="atomikosTransactionManager"/>
            <property name="userTransaction" ref="atomikosUserTransaction" />
            <property name="allowCustomIsolationLevels" value="true"/> 
        </bean>

    同一个事务里你贴这个能证明?你这两个操作是在service层有@Transactional注解的同一个方法里?请问这个No properties path set - looking for transactions.properties in classpath...
    Using init file: /D:/Eclipse_Workspace/Test/build/classes/transactions.properties控制台输出有没有影响呀?

    没影响。他是INFO级别的并非ERROR级别的非常感谢您的回答。