Using CopyManager with pooled JCA connection

From: Jim Garrison <jim(dot)garrison(at)nwea(dot)org>
To: "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Using CopyManager with pooled JCA connection
Date: 2013-09-12 19:07:35
Message-ID: 0C723FEB5B4E5642B25B451BA57E27303EE03319@S1P5DAG3C.EXCHPROD.USA.NET
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

I'm trying to use the CopyManager API inside a JEE container (Geronimo) with DB connections managed by JNDI.

CopyManager can be directly instantiated (new CopyManager(BaseConnection c)) or retrieved from a PGConnection instance. However, the connection I'm given is a wrapper (org.tranql.connector.ManagedConnectionHandle) where the real PostgreSQL connection is wrapped several layers deep. There doesn't seem to be an API with which to retrieve the a PGConnection or BaseConnection, or something that can be cast to one of these.

Anyone have a suggestion as to how to proceed?

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Jim Garrison 2013-09-12 20:25:16 Re: Using CopyManager with pooled JCA connection
Previous Message Kris Jurka 2013-09-12 04:13:39 Re: Using statement parameters with Copy API?