commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 25762] - SharedPoolDataSource getConnection() throws ClassCastException
Date Fri, 26 Dec 2003 13:24:07 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25762>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25762

SharedPoolDataSource getConnection() throws ClassCastException

dirk.verbeeck@pandora.be changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From dirk.verbeeck@pandora.be  2003-12-26 13:24 -------
The underlying datasource providing the physical connections to the
PerUserPoolDataSource & SharedPoolDataSource should implement the
javax.sql.ConnectionPoolDataSource interface.
BasicDataSource doesn't implement this interface and therefor cannot be used in
this configuration.
I have improved the error message when this illegal configuration is detected.

The actual solution is to use the cpdsadapter. 
See:
http://jakarta.apache.org/commons/dbcp/apidocs/org/apache/commons/dbcp/datasources/package-summary.html
http://jakarta.apache.org/commons/dbcp/apidocs/org/apache/commons/dbcp/cpdsadapter/package-summary.html

---------------------------------------------------------------------
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