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

    Catching a timeout exception when using CMT

    Dean Pullen Novice

      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:


      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?