2 Replies Latest reply on May 16, 2005 12:36 PM by Olivier Olivier

    Transaction timeout : being notified

    Olivier Olivier Newbie

      I have a rather simple question. How can I catch the event/exception that the transaction manager raises when a transaction timeout? I can see a warning in my log file, but I need to be notified of this problem.


        • 1. Re: Transaction timeout : being notified
          Neil Albiston Newbie

          I have the same problem. I've gone through all the hoops to configure a method level timeout from a CMT bean . Using..

          * @ejb.interface-method
          * @ejb.transaction type = "RequiresNew"
          * @jboss.method-attributes transaction-timeout="10"

          I see the WARN message in the logs, at the correct time, but the transaction hangs ( or possibly waits for the SQL to finish ) rather than raises a transaction .

          Did you get an answer to your question?

          If not can I raise it again please?

          How how can I force a transaction timeout to raise an exception?

          Running JBoss 3.2.5 with a mySQL database.

          Any help or pointers appreciated,


          • 2. Re: Transaction timeout : being notified
            Olivier Olivier Newbie

            I'm still having that problem and frankly, I have no clue at all.

            And yes, I can see the warning in the log files, but I can't do anything to handle that transactional error.

            Do what you want, you're welcom !