where "getConnection()" is a simple getter on java.sql.Connection class member which in turn set from JNDI DataSource.getConnection() and I'm getting
class com.sun.proxy.$Proxy4 cannot be cast to class org.postgresql.core.BaseConnection
on the "new CopyManager" line. I had been using DriverManager, but thought that was inappropriate with tomcat in play.
Two questions, aside from the obvious Walter Tango Foxtrot 1. The javadoc for BaseConnect suggests "Application code should not use this interface" but CopyManager expects exactly that. Is that not a contradiction? 2. Is DriverManager more appropriate?