0 Replies Latest reply on Nov 28, 2005 7:15 AM by deanouk

    Catching a timeout exception when using CMT

    deanouk

      Notes: I'm using CMT on JBoss 3.2.3

      I'm trying to think of a way to somehow catch a timeout exception. It happens rarely and we can easily increase the timeout time to avoid it, but it has got me thinking of how to catch a timeout exception so that we can respond to the exception in a more constructive way (as opposed to just an exception in the log).

      Adrian suggest the following code in the Wiki:

      http://wiki.jboss.org/wiki/Wiki.jsp?page=WhatIsTheCorrectPatternForUserTransactions

      However I think I'm correct in thinking that though the code at the bottom would help (via the finally block), this is purely for BMT.

      Can anyone suggest anything?

      Thanks.