I have a use case where i need to downcast a pooled database connection down to the native class that is in use for the driver. Unfortunately I don't see any APIs that I can use to do this. Is there any backdoors or mechanisms I can use?
Background, I'm using postgres with tomcat 8.5 and need to access some postgres specific apis, (the large binary object api). I've tried with both the tomcat based pool and the dbp2 connection pooling too.