Re: Using CopyManager with pooled JCA connection

Поиск
Список
Период
Сортировка
От Vitalii Tymchyshyn
Тема Re: Using CopyManager with pooled JCA connection
Дата
Msg-id CABWW-d0dB9eRsF207FxmR0mDzdghWGj9x7ag-qCgnk-9+v2qrw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Using CopyManager with pooled JCA connection  (Jim Garrison <jim.garrison@nwea.org>)
Список 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 по дате отправления:

Предыдущее
От: Sylvain Cuaz
Дата:
Сообщение: Re: DatabaseMetaData getImportedKeys() order
Следующее
От: "Tilman Sandig"
Дата:
Сообщение: JDBC 9.2: multiple execution of prepared statement-query delivers different double precision results via getString()