title: WrapperDataSource instead of OracleDatasource in JBoss AS7
body: <p>I have defined oracle datasource in JBoss standalone.xml as mentioned below:</p>
  
  <pre><code>&lt;datasource jndi-name="java:jboss/datasources/DefaultDS" pool-name="DefaultDS_pool" enabled="true" use-java-context="true"&gt;
                      &lt;connection-url&gt;jdbc:oracle:thin:@localhost:1521:C3S&lt;/connection-url&gt;
                      &lt;driver&gt;oracle&lt;/driver&gt;
                      &lt;security&gt;
                          &lt;user-name&gt;jboss&lt;/user-name&gt;
                          &lt;password&gt;sysadm&lt;/password&gt;
                      &lt;/security&gt;
                  &lt;/datasource&gt;
                  &lt;drivers&gt;
                      &lt;driver name="oracle" module="com.oracle.jdbc"&gt;
                          &lt;xa-datasource-class&gt;oracle.jdbc.xa.client.OracleXADataSource&lt;/xa-datasource-class&gt;
                          &lt;datasource-class&gt;oracle.jdbc.OracleDriver&lt;/datasource-class&gt;
                      &lt;/driver&gt;
  </code></pre>
  
  <p>and i am using this datasource in bean class using below code:</p>
  
  <pre><code>@Resource(mappedName="java:jboss/datasources/DefaultDS")
  DataSource driver;
  </code></pre>
  
  <p>But i am not able to get oracle datasource instead only getting wrapperdatasource object. I was under impression as i have defined oracle datasource so i will get the same.</p>
  
  <p>So please let me know how can i get oracle datasource instead of wrapperdatasource in jboss as7?</p>