0 Replies Latest reply on Sep 26, 2006 12:03 PM by rme

    Uncaught Exceptions and transaction rollback

    rme

      JBoss 4.0.4 has a bunch of places where new ThreadGroups are created.
      In none of those places is the ThreadGroup adjusted so that when
      a Java Error, such as an OutOfMemoryError, is caught existing extant
      transactions rolled back. (With java 4 one would have to create a derived
      class from ThreadGroup and have its uncaughtException method have
      a handler and with java 5 one need only set the handler).
      So, my question is: what happens to transactions when an
      OutOfMemory occurs in another thread?
      JBoss will shutdown (if you have a monitor that looks for OutOfMemory's
      and cycles jboss) but what will happen to the transactions?
      thank
      Richard