Update of /cvsroot/proxool/proxool/src/java/org/logicalcobwebs/proxool
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14790/src/java/org/logicalcobwebs/proxool
Modified Files:
ConnectionPool.java
Log Message:
New sqlCalls gives list of SQL calls rather than just he most recent (for when a connection makes more than one call before being returned to the pool)
Index: ConnectionPool.java
===================================================================
RCS file: /cvsroot/proxool/proxool/src/java/org/logicalcobwebs/proxool/ConnectionPool.java,v
retrieving revision 1.81
retrieving revision 1.82
diff -C2 -d -r1.81 -r1.82
*** ConnectionPool.java 2 Oct 2005 12:32:02 -0000 1.81
--- ConnectionPool.java 7 Oct 2005 08:19:05 -0000 1.82
***************
*** 260,263 ****
--- 260,266 ----
}
+ // This gives the proxy connection a chance to reset itself before it is served.
+ proxyConnection.open();
+
return ProxyFactory.getWrappedConnection(proxyConnection);
}
***************
*** 841,845 ****
ci.setProxyHashcode(connectionInfo.getProxyHashcode());
ci.setDelegateHashcode(connectionInfo.getDelegateHashcode());
! ci.setLastSqlCall(connectionInfo.getLastSqlCall());
cis.add(ci);
}
--- 844,851 ----
ci.setProxyHashcode(connectionInfo.getProxyHashcode());
ci.setDelegateHashcode(connectionInfo.getDelegateHashcode());
! String[] sqlCalls = connectionInfo.getSqlCalls();
! for (int j = 0; j < sqlCalls.length; j++) {
! ci.addSqlCall(sqlCalls[j]);
! }
cis.add(ci);
}
***************
*** 1109,1112 ****
--- 1115,1121 ----
Revision history:
$Log$
+ Revision 1.82 2005/10/07 08:19:05 billhorsman
+ New sqlCalls gives list of SQL calls rather than just he most recent (for when a connection makes more than one call before being returned to the pool)
+
Revision 1.81 2005/10/02 12:32:02 billhorsman
Make connectionCount available to statistics
|