I'm using WASCE as application server and defined a data source to PosgreSQL. I get the DB Connection from JNDI.
The problem is I want to access specific method in the PostgreSQL java.sql.Connection but WASCE wrapped this connection with their own Connection.
Specifically, I want to do something like this:
((org.postgresql.Connection)conn).addDataType("geometry","org.postgis.PGgeometry");
((org.postgresql.Connection)conn).addDataType("box3d","org.postgis.PGbox3d");
Is that possible? If yes, please share how.
EDIT:
I expect to have something like access to the original Connection from this wrapped Connection, but I can't find any until now.