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 <[EMAIL PROTECTED]>
  
  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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to