2 Replies Latest reply on Oct 2, 2003 1:02 AM by jacques_buitendag

    Preventing Transaction Timeouts

    jacques_buitendag

      Hi all,

      I am writing an application that requires that there are long running transactions.

      The problem comes in that the transactions time-out after 3 minutes (or any other value I set the time-out to). The time out happens every time even with the application performing the required operations.

      My question is does JBoss only use a time to determine if a transaction is still active or does JBoss monitor the activity in the tread associated with the transaction ?

      I am using JBoss 3.2.1 and JDK 1.4.2

      Kind Regards
      Jacques Buitendag

        • 1. Re: Preventing Transaction Timeouts

          It's a timer that eventually times out the transaction (with default settings after 300 seconds), activity of the thread is not measured (how would you do that in Java?)

          -- Juha

          • 2. Re: Preventing Transaction Timeouts
            jacques_buitendag

            Hi Juha,

            That was what I thought!

            My hope was that Jboss would at least reset the timer if it found the thread still active!

            I know that it is properly impossible to monitor thread activity in Java but a simple solution would have been each time the thread make a successful call to a EJB (or any application server controlled resource) the timer could be reset, this wont happen if the call causes deadlock between two transactions.

            I think this would have worked because the call is intercepted by Jboss

            Thanks
            Jacques Buitendag