JBOSS 中oracle-ds.xml的配置模板。

來源:互聯網
上載者:User

<?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 />

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.