commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From di...@apache.org
Subject cvs commit: jakarta-commons/dbcp/src/java/org/apache/commons/dbcp AbandonedObjectPool.java
Date Fri, 22 Aug 2003 12:39:25 GMT
dirkv       2003/08/22 05:39:25

  Modified:    dbcp/src/java/org/apache/commons/dbcp
                        AbandonedObjectPool.java
  Log:
  do not try to reuse abandoned connections but invalidate/discard them
  
  Revision  Changes    Path
  1.6       +6 -6      jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/AbandonedObjectPool.java
  
  Index: AbandonedObjectPool.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/AbandonedObjectPool.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- AbandonedObjectPool.java	9 Apr 2003 00:19:37 -0000	1.5
  +++ AbandonedObjectPool.java	22 Aug 2003 12:39:25 -0000	1.6
  @@ -178,8 +178,8 @@
                   pc.printStackTrace();
               }             
               try {
  -                pc.close();
  -            } catch(SQLException e) {
  +                invalidateObject(pc);
  +            } catch(Exception e) {
                   e.printStackTrace();
               }             
           }
  
  
  

Mime
View raw message