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 21:21:08 GMT
proyal      2002/06/03 14:21:07

  Modified:    event/src/java/org/apache/excalibur/event/command
                        TPCThreadManager.java
  Log:
  Move RuntimeException catch to bottom of run() at the suggestion of
  Greg Steuck <greg-avalon-dev@nest.cx>
  
  Revision  Changes    Path
  1.20      +10 -10    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.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- TPCThreadManager.java	3 Jun 2002 20:58:48 -0000	1.19
  +++ TPCThreadManager.java	3 Jun 2002 21:21:07 -0000	1.20
  @@ -262,16 +262,6 @@
                                                     + "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
  @@ -285,6 +275,16 @@
           catch( InterruptedException e )
           {
               Thread.interrupted();
  +        }
  +        catch( RuntimeException e )
  +        {
  +            if( getLogger().isFatalErrorEnabled() )
  +            {
  +                getLogger().fatalError( "TPCThreadManager management thread aborting "
  +                                        + " due to exception", e );
  +            }
  +
  +            throw e;
           }
       }
   
  
  
  

--
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