>>>>> "Peter" == Peter Royal <[EMAIL PROTECTED]> writes:

    >>  Sounds reasonable to me. It would have definitely helped to
    >> catch the original not-enough-items-in-pool error.

    Peter> Done. Shouldn't ever happen.. but just in case :) -pete

Correct me if I'm wrong, but I though run() should terminate, not
continue going.

Something like this?

Index: TPCThreadManager.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-avalon-excalibur/event/src/java/org/apache/excalibur/event/command/TPCThreadManager.java,v
retrieving revision 1.19
diff -u -c -r1.19 TPCThreadManager.java
*** TPCThreadManager.java       3 Jun 2002 20:58:48 -0000       1.19
--- TPCThreadManager.java       3 Jun 2002 21:11:10 -0000
***************
*** 262,277 ****
                                                    + "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
--- 262,267 ----
***************
*** 285,290 ****
--- 275,289 ----
          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