<?xml version="1.0" encoding="UTF-8"?></p><p><!-- ===================================================================== --><br /><!-- --><br /><!-- JBoss Server Configuration --><br /><!-- --><br /><!-- ===================================================================== --></p><p><!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about local-tx-datasource --><br /><!-- $Id: oracle-ds.xml 88948 2009-05-15 14:09:08Z jesper.pedersen $ --><br /><!-- ==================================================================== --><br /><!-- Datasource config for Oracle originally from Steven Coy --><br /><!-- ==================================================================== --></p><p><datasources><br /> <local-tx-datasource><br /> <jndi-name>OracleDS</jndi-name><br /> <connection-url>jdbc:oracle:thin:@10.28.10.37:1521:orcl</connection-url><br /><!--</p><p>Here are a couple of the possible OCI configurations.<br />For more information, see http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/java.920/a96654/toc.htm</p><p><connection-url>jdbc:oracle:oci:@youroracle-tns-name</connection-url><br />or<br /><connection-url>jdbc:oracle:oci:@(description=(address=(host=youroraclehost)(protocol=tcp)(port=1521))(connect_data=(SERVICE_NAME=yourservicename)))</connection-url></p><p>Clearly, its better to have TNS set up properly.<br /> --><br /> <driver-class>oracle.jdbc.driver.OracleDriver</driver-class><br /> <user-name>hadiantest</user-name><br /> <password>hadiantest</password><br /> <!-- Uses the pingDatabase method to check a connection is still valid before handing it out from the pool --><br /> <!--valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name--><br /> <!-- Checks the Oracle error codes and messages for fatal errors --><br /> <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name><br /> <!-- sql to call when connection is created<br /> <new-connection-sql>some arbitrary sql</new-connection-sql><br /> --></p><p> <!-- sql to call on an existing pooled connection when it is obtained from pool - the OracleValidConnectionChecker is prefered<br /> <check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql><br /> --></p><p> <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) --><br /> <metadata><br /> <type-mapping>Oracle9i</type-mapping><br /> <min-pool-size>5</min-pool-size><br /> <max-pool-size>10</max-pool-size><br /> <idle-timeout-minutes>1</idle-timeout-minutes><br /> <track-statements/><br /> <prepared-statement-cache-size>32</prepared-statement-cache-size><br /> <check-valid-connection-sql>select 1 from dual</check-valid-connection-sql><br /> <new-connection-sql>select 1 from dual</new-connection-sql><br /> <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name><br /> <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name><br /> </metadata><br /> </local-tx-datasource></p><p></datasources><br />