I've deployed the example datasource for Oracle, shown below, into JBoss 4.0.1. I'm looking for the various attributes through the jmx-console and I can find all of them except type-mapping, which has the value of 'Oracle9i' below. Could someone please point me to which MBean it is available through.
Thanks
<datasources> <local-tx-datasource> <jndi-name>OracleDS</jndi-name> <connection-url>jdbc:oracle:thin:@youroraclehost:1521:yoursid</connection-url> <driver-class>oracle.jdbc.driver.OracleDriver</driver-class> <user-name>x</user-name> <password>y</password> <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name> <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) --> <metadata> <type-mapping>Oracle9i</type-mapping> </metadata> </local-tx-datasource> </datasources>
It maps to a jboss.jdbc:service=metadata,datasource=OracleDS deployment which is a org.jboss.ejb.plugins.cmp.jdbc.metadata.DataSourceMetaData. This is used by the cmp2 engine, not the datasource.