title: Unwrap to OracleConnection
body: <p>I have this piece of code that used to run properly using JBoss 5.1, Oracle 11, ojdbc6.jar. I was getting the OracleConnection as needed.</p>
  
  <pre><code>InitialContext ic = new InitialContext();
  DataSource  ds = ( DataSource ) ic.lookup( "java:/" + dataSource );
  Connection con = ds.getConnection();       
  OracleConnection conn = con.unwrap( OracleConnection.class );
  </code></pre>
  
  <p>Not anymore using JBoss 7, Oracle 11, ojdbc6.jar.
  It says like this:</p>
  
  <blockquote>
    <p>Connection
    Not a wrapper class for Oracle Connection</p>
  </blockquote>
  
  <p>If you have any idea, please help.</p>