Update of /cvsroot/proxool/proxool/src/java/org/logicalcobwebs/proxool
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10977/src/java/org/logicalcobwebs/proxool
Modified Files:
ProxoolFacade.java
Log Message:
Clone the definition when redefining or updating the pool.
Index: ProxoolFacade.java
===================================================================
RCS file: /cvsroot/proxool/proxool/src/java/org/logicalcobwebs/proxool/ProxoolFacade.java,v
retrieving revision 1.81
retrieving revision 1.82
diff -C2 -d -r1.81 -r1.82
*** ProxoolFacade.java 29 Sep 2004 15:43:25 -0000 1.81
--- ProxoolFacade.java 4 May 2005 16:32:31 -0000 1.82
***************
*** 533,538 ****
String alias = getAlias(url);
ConnectionPool cp = ConnectionPoolManager.getInstance().getConnectionPool(alias);
! ConnectionPoolDefinition cpd = cp.getDefinition();
! cpd.redefine(url, info);
}
--- 533,544 ----
String alias = getAlias(url);
ConnectionPool cp = ConnectionPoolManager.getInstance().getConnectionPool(alias);
! try {
! // Clone the old one
! ConnectionPoolDefinition cpd = (ConnectionPoolDefinition) cp.getDefinition().clone();
! cpd.redefine(url, info);
! cp.setDefinition(cpd);
! } catch (CloneNotSupportedException e) {
! throw new ProxoolException("Funny, why couldn't we clone a definition?", e);
! }
}
***************
*** 549,554 ****
String alias = getAlias(url);
ConnectionPool cp = ConnectionPoolManager.getInstance().getConnectionPool(alias);
! ConnectionPoolDefinition cpd = cp.getDefinition();
! cpd.update(url, info);
}
--- 555,566 ----
String alias = getAlias(url);
ConnectionPool cp = ConnectionPoolManager.getInstance().getConnectionPool(alias);
! try {
! // Clone the old one
! ConnectionPoolDefinition cpd = (ConnectionPoolDefinition) cp.getDefinition().clone();
! cpd.update(url, info);
! cp.setDefinition(cpd);
! } catch (CloneNotSupportedException e) {
! throw new ProxoolException("Funny, why couldn't we clone a definition?", e);
! }
}
***************
*** 806,809 ****
--- 818,824 ----
Revision history:
$Log$
+ Revision 1.82 2005/05/04 16:32:31 billhorsman
+ Clone the definition when redefining or updating the pool.
+
Revision 1.81 2004/09/29 15:43:25 billhorsman
Recheck isPoolExists inside synchronized registerConnectionPool method. Credit Juergen Hoeller.
|