5 Replies Latest reply on Dec 17, 2013 3:19 AM by gonthim

    Defaut Transaction Timeout not working - Jboss EAP 6

    harry009

      We have default transaction timeout set in standalone-full-ha.xml to 300 , which as per documentation is 5 minutes.

       

      But my transaction timeout within 1 minute or 60 seconds.

       

       

      "

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

                  <core-environment>

                      <process-id>

                          <uuid/>

                      </process-id>

                  </core-environment>

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

                  <coordinator-environment enable-statistics="true" default-timeout="3000"/>

              </subsystem>

      "

       

       

      Why so, Is it BUG  in Jboss EAP 6 ? OR i have configured wrongly.

       

      I tried changing default value to 3000 it still timeout within 1 minute ?? But if i change transaction timeout to -1 then it works perfectly OK.

       

      Please provide your inputs which can lead to resolve the issue.

        • 1. Re: Defaut Transaction Timeout not working - Jboss EAP 6
          gonthim

          I'm not having a problem setting the timeout from there. Not sure what problem you could be hitting.

           

          There are other places this value can be set and I'm not sure which one 'wins' if it's set multiple places. Do you have a jboss-ejb3.xml or annotation that could be overwriting the default timeout in the standalone-full-ha.xml?

          • 2. Re: Defaut Transaction Timeout not working - Jboss EAP 6
            wdfink

            It is possible to override the default with annotations or descriptor in your application.

            BTW which version do you use? I did not see that problem in EAP6

            • 3. Re: Defaut Transaction Timeout not working - Jboss EAP 6
              harry009

              I appreciate the quick response.

               

              We are using Jboss EAP 6.1 .

               

              This is weird because if we try 3000 then again issue is reproducible. But if i put timeout value in standalone as -1 or 0 then transaction does not timeout.

               

              But now i know that i can override it only in 3 ways -

               

              1. In standalone transaction subsystem

              2. TransactionTimeout Attribute at method/class level

              3. jboss-ejb3.xml file- Is it still valid in Jboss EAP 6.1 ?

               

              Thanks

              • 4. Re: Defaut Transaction Timeout not working - Jboss EAP 6
                wdfink

                Yes the override places are correct.

                But such huge default timeout seems odd to me for some reasons.

                 

                What if you set 60 instead of 300?

                • 5. Re: Defaut Transaction Timeout not working - Jboss EAP 6
                  gonthim

                  Can you try checking and/or changing the value via the command line interface?

                   

                  bin/jboss-cli.sh --connect

                  [standalone@localhost:9999 /] /subsystem=transactions/:write-attribute(name=default-timeout,value=3000)

                   

                  and then read it back to check that it worked:

                   

                  [standalone@localhost:9999 /] /subsystem=transactions/:read-attribute(name=default-timeout)

                   

                  and then reboot the server

                   

                  I'm curious to see what jboss thinks this value is since it seems to be stuck on 60 seconds.