5 Replies Latest reply on Apr 5, 2004 1:00 AM by juha

    Transaction Times?

    pawanraj

      Hi,

      The method scenario in main method is <container mnged transactions>

      main() //Trans Attrib "Required"
      {
      methodB() - Transaction Attrib "Not Supported"
      }

      from what i understand, transaction for main() is suspended and B() runs. after B completes, transaction for main() resumes.

      My question is if transaction for main() has run for 2 secs before being suspended and B() runs for 5 seconds, would total time of transaction started with main() be 7 seconds or 2 seconds?

      Thanx in Advance.

        • 1. Re: Transaction Times?

          7

          • 2. Re: Transaction Times?
            pawanraj

            thanx juha,

            i made a test program to do this, and the first transaction still goes on.. can you help me with this. i want the first transaction to be suspended till the inner one completes..

            i cannot use "not supported", i want the upper method in transaction also.

            Thanx again

            Pawan

            • 3. Re: Transaction Times?

              RequiresNew starts a new independent transaction and suspends the existing one until the new tx commits

              • 4. Re: Transaction Times?
                pawanraj

                Hi,

                I know that req. new would start a new transaction.

                The problem is if i start a "requires new" inside a "required", the "required" transaction is suspended, but its transaction timer keeps ticking.. so if the "Requires new" transaction continues beyond time-limit, even the "required" transaction is timed out.

                That is my problem, I dont want it that way... any way out?

                Pawan

                • 5. Re: Transaction Times?

                  What you're looking for are nested transactions, which we don't support.