Re: Using CopyManager with pooled JCA connection - Mailing list pgsql-jdbc

From Vitalii Tymchyshyn
Subject Re: Using CopyManager with pooled JCA connection
Date
Msg-id CABWW-d0dB9eRsF207FxmR0mDzdghWGj9x7ag-qCgnk-9+v2qrw@mail.gmail.com
Whole thread Raw
In response to Re: Using CopyManager with pooled JCA connection  (Jim Garrison <jim.garrison@nwea.org>)
List pgsql-jdbc
Have you tried using unwrap ( http://docs.oracle.com/javase/7/docs/api/java/sql/Wrapper.html#unwrap(java.lang.Class) )? That's documented way to do this.


2013/9/13 Jim Garrison <jim.garrison@nwea.org>
Tried

        DatabaseMetaData md = con.getMetaData();
        Connection       rc = md.getConnection();

 but that just returns the same ConnectionHandle object.  Looks like I'm at a dead end because for two different connections I get instances of the same classes loaded by two different classloaders, which makes them completely incompatible. Sigh...


--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc

pgsql-jdbc by date:

Previous
From: Sylvain Cuaz
Date:
Subject: Re: DatabaseMetaData getImportedKeys() order
Next
From: "Tilman Sandig"
Date:
Subject: JDBC 9.2: multiple execution of prepared statement-query delivers different double precision results via getString()