ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Osbaldeston <richard.osbaldes...@wordmap.com>
Subject Re: Access to the underlying connection
Date Tue, 19 Apr 2005 14:54:16 GMT
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

Mime
View raw message