avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pro...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/event/src/java/org/apache/excalibur/event/command TPCThreadManager.java
Date Mon, 03 Jun 2002 20:58:48 GMT
proyal      2002/06/03 13:58:48

  Modified:    event/src/java/org/apache/excalibur/event/command
                        TPCThreadManager.java
  Log:
  Catch any RuntimeException's in the main worker thread. If not caught and
  logged they will never be seen. This is not an expected case, but better
  to be safe...
  
  Revision  Changes    Path
  1.19      +10 -0     jakarta-avalon-excalibur/event/src/java/org/apache/excalibur/event/command/TPCThreadManager.java
  
  Index: TPCThreadManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/event/src/java/org/apache/excalibur/event/command/TPCThreadManager.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- TPCThreadManager.java	29 May 2002 01:18:35 -0000	1.18
  +++ TPCThreadManager.java	3 Jun 2002 20:58:48 -0000	1.19
  @@ -262,6 +262,16 @@
                                                     + "increase block-timeout or number of
threads per processor", e );
                               }
                           }
  +                        catch( RuntimeException e )
  +                        {
  +                            if( getLogger().isFatalErrorEnabled() )
  +                            {
  +                                getLogger().fatalError( "TPCThreadManager management thread
aborting "
  +                                                        + " due to exception", e );
  +                            }
  +
  +                            throw e;
  +                        }
                       }
                   }
                   finally
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message