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
connectionis 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?