| From: | Vitalii Tymchyshyn <vit(at)tym(dot)im> |
|---|---|
| To: | Jim Garrison <jim(dot)garrison(at)nwea(dot)org> |
| Cc: | "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org> |
| Subject: | Re: Using CopyManager with pooled JCA connection |
| Date: | 2013-09-13 04:53:31 |
| Message-ID: | CABWW-d0dB9eRsF207FxmR0mDzdghWGj9x7ag-qCgnk-9+v2qrw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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(dot)garrison(at)nwea(dot)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(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Sylvain Cuaz | 2013-09-13 15:27:04 | Re: DatabaseMetaData getImportedKeys() order |
| Previous Message | Jim Garrison | 2013-09-12 22:07:22 | Re: Using CopyManager with pooled JCA connection |