Shash Chatterjee wrote:
I am not sure if this is a bug, or that the usage of
DataSourceComponent/JdbcConnection has changed.

Have existing code like:

DataSourceComponent myDataSourceComponent = ......get a
ResourceLimitingJdbcDataSource .....
Connection myConnection = myDataSourceComponent.getConnection();

But, getting a ClassCastException in
ResourceLimitingJdbcDataSource.getConnection() on the return statement where
"(Connection)connection" cast is done.  "connection" (Object) is a
JdbcConnection, extends AbstractJdbcConnection, neither of which implement
Connection any longer.  Looks like these have been changed to use proxies.

Question is what should I change to adapt?

This happens when there are no connections and a null is returned.



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to