4 Replies Latest reply on Sep 21, 2003 2:45 PM by juha

    Per-bean and per-method transaction timeouts

    ctrawick

      Gentoo-x86 1.4 (Linux 2.4)
      Blackdown JDK 1.4.1-01
      JBoss 3.2.1 (Jetty)
      XDoclet 1.2b3
      Maven 1.0b10

      Is there a way to specify a per-bean or per-method transaction timeout in the above configuration? If not, has anyone achieved something similar?

      For example:

      LoadMDB performs asynchronous atomic database loads. These might take a while (5 mins to 1 hour).

      LoadStatusSession reads load status records. If any call to this bean takes longer than 10 secs, it should die and free up any resources and locks.

      The TransactionTimeout attribute in transaction-service.xml appears to affect transaction timouts globally. Is there a way to have a separate timeout for each bean?

      Thanks in advance
      chris