title: How to get password from jboss database configuration
body: <p>My problem is that I have configured a oracle-ds.xml in jboss deploy folder. I can get the instance of dataSource and connection. And now, I want to get the password from the database configuration through jboss api. What could I do at the moment?<br><br>
  Database Configuration:</p>
  
  <pre><code>&lt;datasources&gt;
    &lt;xa-datasource&gt;
      &lt;jndi-name&gt;XPCDataSource&lt;/jndi-name&gt;
      &lt;track-connection-by-tx/&gt;
      &lt;isSameRM-override-value&gt;false&lt;/isSameRM-override-value&gt;
      &lt;xa-datasource-class&gt;oracle.jdbc.xa.client.OracleXADataSource&lt;/xa-datasource-class&gt;
      &lt;xa-datasource-property name="URL"&gt;jdbc:oracle:thin:@172.17.16.49:1521:ora49&lt;/xa-datasource-property&gt;
      &lt;xa-datasource-property name="User"&gt;workbench_0628&lt;/xa-datasource-property&gt;
      &lt;xa-datasource-property name="Password"&gt;workbench_0628&lt;/xa-datasource-property&gt;
      &lt;min-pool-size&gt;10&lt;/min-pool-size&gt;
      &lt;max-pool-size&gt;50&lt;/max-pool-size&gt;
      &lt;exception-sorter-class-name&gt;org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter&lt;/exception-sorter-class-name&gt;
      &lt;!-- Oracles XA datasource cannot reuse a connection outside a transaction once enlisted in a global transaction and vice-versa --&gt;
      &lt;no-tx-separate-pools/&gt;
      &lt;metadata&gt;
        &lt;type-mapping&gt;Oracle9i&lt;/type-mapping&gt;
      &lt;/metadata&gt;
    &lt;/xa-datasource&gt;
    &lt;mbean code="org.jboss.resource.adapter.jdbc.vendor.OracleXAExceptionFormatter" name="jboss.jca:service=OracleXAExceptionFormatter"&gt;
      &lt;depends optional-attribute-name="TransactionManagerService"&gt;jboss:service=TransactionManager&lt;/depends&gt;
    &lt;/mbean&gt;
  &lt;/datasources&gt;
  </code></pre>