0 Replies Latest reply on Aug 12, 2014 8:30 AM by lindner

    nested transactions / subtransactionsc

    lindner

      In JBoss 5 it ws possible to configure server/standard/conf/jbossts-properties.xml with settings like

              <property name="com.arjuna.ats.jta.supportSubtransactions" value="NO"/>

              <property name="com.arjuna.ats.jta.jtaTMImplementation" value="com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionManagerImple"/>

      to support nested transactions.

       

      How is this handled in Wildfly?

       

      I have two different persistence contexts A and B. Inside of a Sessioin Bean auf contex A I call


              SessionBean v = getSessionBeanFromContextB();

              v.doSomeActionsInContextB();

       

      and the method doSomeActionsInContextB() is marked with

              @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)

              public void doSomeActionsInContextB() {

              ...

              }


      I tried to adopt the example "Java Transaction Service - Distributed EJB Transactions Across Multiple Containers" from http://www.jboss.org//quickstarts/eap/jts/index.html but this example is outdated and did not lead to success. Adding


              <subsystem xmlns="urn:jboss:domain:transactions:1.2">

                    <core-environment node-identifier="${jboss.tx.node.id}">

                    <!-- LEAVE EXISTING CONFIG AND APPEND THE FOLLOWING -->

                    <jts/>

              </subsystem>

       

      leads to different error messages but still does not solve my problem.