Thanks, Scott.

AFAIK conn.unwrap is only available in JDK 1.6, and we are still on 1.5.

I re-tried casting the UserConnection into a PGConnection and get a  
ClassCastException:

java.lang.ClassCastException: org.postgresql.jdbc3g.Jdbc3gConnection


On Oct 2, 2008, at 4:13 PM, Scott Ferguson wrote:

>> You can either use Resin's getConnection() method or the unwrap  
>> method,
>
> Connection conn = _database.getConnection();
>
> PGConnection pgConn = conn.unwrap(PGConnection.class);
>
> or
>
> PGConnection pgConn = (PGConnection) ((com.caucho.sql.UserConnection)
> conn).getConnection();
>
> -- Scott

> --

Claire McLister                        [EMAIL PROTECTED]
21060 Homestead Road Suite 150
Cupertino, CA 95014            408-733-2737(fax)

                     http://www.zeemaps.com





_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to