5 Replies Latest reply on Jul 18, 2003 10:25 AM by lfinis

    Automatic transaction retry

    lfinis

      Hi,

      In one of the posts someone mentioned that latest JBOSS version automatically retry the transaction if a deadlock has been detected.
      I'm working with 3.2.0 and the transaction is not retried.
      Is there something i could change in the configuration?

      Thanks,
      Leonid.

        • 1. Re: Automatic transaction retry

          Post the log. How do you know it is not being tried?

          Regards,
          Adrian

          • 2. Re: Automatic transaction retry
            lfinis

            Hi,

            The reason i think that the transaction is not retried is because i don't see "retrying" WARN message in server log. (Source code emits it).
            I'm attaching the log.

            Thanks,
            Leonid.

            • 3. Re: Automatic transaction retry

              What does your getProductsByType do? It looks like
              you are throwing an EJBException when the error
              is encountered so the transaction interceptor
              cannot find the ApplicationDeadlockException.

              Please don't post the full log in future 34M is way too
              much data.

              Regards,
              Adrian

              • 4. Re: Automatic transaction retry

                What does your getProductsByType do? It looks like
                you are throwing an EJBException when the error
                is encountered so the transaction interceptor
                cannot find the ApplicationDeadlockException.

                Please don't post the full log in future 34M is way too
                much data.

                Regards,
                Adrian

                • 5. Re: Automatic transaction retry
                  lfinis

                  I think you're right. I incorrectly chain the exceptions.
                  If i add source exception as a second parameter to EJBException constructor (causedByException), is TxInterceptorCMT going to trace down the chain and find the ROOT cause (deadlock)?

                  Thanks,
                  Leonid.