This content has been marked as final.
Show 1 reply
-
1. Re: access to oracle.jdbc.driver.OracleConnection through Lo
jmiller Dec 12, 2002 1:18 PM (in response to jecop)I had this same type of problem. Fortunately, LocalConnection exposes a getUnderlyingConnection() method that returns the actual connection. You will have to cast to a LocalConnection first, then get the underlying connection from that. You will find the JAR containing the LocalConnection class within the jboss-local-jdbc.rar in the default deploy directory.
Connection local = ds.getConnection();
if (local instanceof LocalConnection) {
Connection underlying = ((LocalConnection) local).getUnderlyingConnection();
// Now cast to OracleConnection and perform specifics
}