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 BasicDataSource.java
Date Mon, 10 Nov 2003 14:51:43 GMT
dirkv       2003/11/10 06:51:43

  Modified:    dbcp/src/java/org/apache/commons/dbcp BasicDataSource.java
  Log:
  add activate & passivate to validateConnectionFactory
  
  Revision  Changes    Path
  1.31      +5 -3      jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/BasicDataSource.java
  
  Index: BasicDataSource.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/dbcp/src/java/org/apache/commons/dbcp/BasicDataSource.java,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- BasicDataSource.java	9 Oct 2003 21:04:44 -0000	1.30
  +++ BasicDataSource.java	10 Nov 2003 14:51:43 -0000	1.31
  @@ -836,7 +836,9 @@
           Connection conn = null;
           try {
               conn = (Connection) connectionFactory.makeObject();
  +            connectionFactory.activateObject(conn);
               connectionFactory.validateConnection(conn);
  +            connectionFactory.passivateObject(conn);
           }
           finally {
               connectionFactory.destroyObject(conn);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message