Ok, simplifying, is there any way I can have a DataSource that does not provide wrapped connections? I need the class from the DS to be a java.sql.Connection. Anyone can help?
Our project uses AQ connections and we need to unwrapp the datasource connection first:
WrappedConnection wrappedConn = (WrappedConnection)con;
OracleConnection ocon = null ;
if (wrappedConn != null)
ocon = (OracleConnection) wrappedConn.getUnderlyingConnection();
// then use ocon for connecting to AQ
Hope that helps.