0 Replies Latest reply on Jun 19, 2015 6:31 AM by leru

    jbossTM +spring+myibatis don't do rollback

    leru

      <!---        Resources.xml  --->

       

       

      <bean id="transactionManager" class="org.springframework.transaction.jta.JtaTransactionManager" >

       

         <property name="transactionManagerName" value="java:/TransactionManager"/>

        </bean>

       

        <!-- ORACLE -->

        <bean class="org.springframework.jndi.JndiObjectFactoryBean" id="s2mc">

        <property name="jndiName" value="java:jboss/datasources/jdbc/oracleDSs2mc" />

        </bean>

       

      <!--    Services.xml  ---->

       

      <?xml version="1.0" encoding="UTF-8"?>

      <beans xmlns="http://www.springframework.org/schema/beans"

        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

        xsi:schemaLocation="http://www.springframework.org/schema/beans

                                 http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">

       

       

        <!-- SERVIZI IN ORDINE ALFABETICO -->

       

       

        <bean

        class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"

        id="SRVConfigurazione">

        <property name="proxyInterfaces">

        <list>

        <value>it.s2mc.be.srv.ISRVConfigurazione</value>

        </list>

        </property>

        <property name="transactionManager">

        <ref bean="transactionManager" />

        </property>

        <property name="target">

        <ref bean="SRVConfigurazioneTarget" />

        </property>

        <property name="transactionAttributes">

        <props>

        <prop key="*">PROPAGATION_REQUIRED,-Exception</prop>

        </props>

        </property>

        </bean>

       

       

        <bean

        class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"

        id="SRVGestioneFlussi">

        <property name="proxyInterfaces">

        <list>

        <value>it.s2mc.be.srv.ISRVGestioneFlussi</value>

        </list>

        </property>

        <property name="transactionManager">

        <ref bean="transactionManager" />

        </property>

        <property name="target">

        <ref bean="SRVGestioneFlussiTarget" />

        </property>

        <property name="transactionAttributes">

        <props>

        <prop key="*">PROPAGATION_REQUIRED,-Exception</prop>

        </props>

        </property>

        </bean>

       

       

        <bean

        class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"

        id="SRVCalcoli">

        <property name="proxyInterfaces">

        <list>

        <value>it.s2mc.be.srv.ISRVCalcoli</value>

        </list>

        </property>

        <property name="transactionManager">

        <ref bean="transactionManager" />

        </property>

        <property name="target">

        <ref bean="SRVCalcoliTarget" />

        </property>

        <property name="transactionAttributes">

        <props>

        <prop key="*">PROPAGATION_REQUIRED,-Exception</prop>

        </props>

        </property>

        </bean>

       

       

        <bean

        class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"

        id="SRVUploadFlussi">

        <property name="proxyInterfaces">

        <list>

        <value>it.s2mc.be.srv.ISRVUploadFlussi</value>

        </list>

        </property>

        <property name="transactionManager">

        <ref bean="transactionManager" />

        </property>

        <property name="target">

        <ref bean="SRVUploadFlussiTarget" />

        </property>

        <property name="transactionAttributes">

        <props>

        <prop key="*">PROPAGATION_REQUIRED,-Exception</prop>

        </props>

        </property>

        </bean>

       

        <bean

        class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"

        id="SRVPresentation">

        <property name="proxyInterfaces">

        <list>

        <value>it.s2mc.be.srv.ISRVPresentation</value>

        </list>

        </property>

        <property name="transactionManager">

        <ref bean="transactionManager" />

        </property>

        <property name="target">

        <ref bean="SRVPresentationTarget" />

        </property>

        <property name="transactionAttributes">

        <props>

        <prop key="*">PROPAGATION_REQUIRED,-Exception</prop>

        </props>

        </property>

        </bean>

       

        <bean

        class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"

        id="SRVMonitoraggio">

        <property name="proxyInterfaces">

        <list>

        <value>it.s2mc.be.srv.ISRVMonitoraggio</value>

        </list>

        </property>

        <property name="transactionManager">

        <ref bean="transactionManager" />

        </property>

        <property name="target">

        <ref bean="SRVMonitoraggioTarget" />

        </property>

        <property name="transactionAttributes">

        <props>

        <prop key="*">PROPAGATION_REQUIRED,-Exception</prop>

        </props>

        </property>

        </bean>

       

        <bean class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"

        id="SRVQrt">

        <property name="proxyInterfaces">

        <list>

        <value>it.s2mc.be.srv.ISRVQrt</value>

        </list>

        </property>

        <property name="transactionManager">

        <ref bean="transactionManager" />

        </property>

        <property name="target">

        <ref bean="SRVQrtTarget" />

        </property>

        <property name="transactionAttributes">

        <props>

        <prop key="*">PROPAGATION_REQUIRED,-Exception</prop>

        </props>

        </property>

        </bean>

       

       

      </beans>

       

       

      ---------------------------------------------------------