Can anybody explain unwrapConnection in SimpleDataSource for me? The code reads:

 public static Connection unwrapConnection(Connection conn) {
   if (conn instanceof SimplePooledConnection) {
     return ((SimplePooledConnection) conn).getRealConnection();
   }
   ...

But the private (argh!) SimplePooledConnection isnt a connection object? it extends Object and implements InvokationHandler.. Im guessing this hasn't ever worked.

- Richard

Reply via email to