2 Replies Latest reply on Mar 25, 2015 3:21 AM by helmutz

    How to set TransactionTimeout in WildFly-8.2

    valsaraj viswanathan Master

      Hi,

       

      In old version of JBoss, we set TransactionTimeout in jboss-service.xml as given below:

         <!-- JBoss Transactions JTA -->

         <mbean code="com.arjuna.ats.jbossatx.jta.TransactionManagerService"

            name="jboss:service=TransactionManager">

            <attribute name="TransactionTimeout">7200</attribute>

            <attribute name="ObjectStoreDir">${jboss.server.data.dir}/tx-object-store</attribute>

         </mbean>

       

      How to set this in WildFly-8.2?

        • 1. Re: How to set TransactionTimeout in WildFly-8.2
          Lin Gao Newbie

          I see a CLI in WildFly 8.2, may be it is related:

           

          [standalone@localhost:9990 /] /subsystem=transactions:write-attribute(name=default-timeout,value=500)
          {
              "outcome" => "success",
              "response-headers" => {
                  "operation-requires-reload" => true,
                  "process-state" => "reload-required"
              }
          }
          

           

          in standalone mode

           

          or:

           

          [domain@localhost:9990 /] /profile=full/subsystem=transactions:write-attribute(name=default-timeout,value=500)
          {
              "outcome" => "success",
              "result" => undefined,
              "server-groups" => {"main-server-group" => {"host" => {"master" => {
                  "server-one" => {"response" => {
                      "outcome" => "success",
                      "response-headers" => {
                          "operation-requires-reload" => true,
                          "process-state" => "reload-required"
                      }
                  }},
                  "server-two" => {"response" => {
                      "outcome" => "success",
                      "response-headers" => {
                          "operation-requires-reload" => true,
                          "process-state" => "reload-required"
                      }
                  }}
              }}}}
          }
          

           

          in domain mode

          1 of 1 people found this helpful
          • 2. Re: How to set TransactionTimeout in WildFly-8.2
            helmutz Newbie

            In standalone.xml:

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

                <core-environment>

                    <process-id>

                        <uuid/>

                    </process-id>

                </core-environment>

                <recovery-environment socket-binding="txn-recovery-environment" status-socket-binding="txn-status-manager"/>

               <coordinator-environment default-timeout="7200"/>

            </subsystem>

            1 of 1 people found this helpful