加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

hello

发布时间:2020-12-13 18:02:53 所属栏目:百科 来源:网络整理
导读:datasources local-tx-datasource jndi-namePostgreDS/jndi-name connection-urljdbc:postgresql://192.168.158.221/cdms(beta1)/connection-url !-- Here are a couple of the possible OCI configurations. For more information,see connection-urljdbc:o

<datasources>
<local-tx-datasource>
<jndi-name>PostgreDS</jndi-name>
<connection-url>jdbc:postgresql://192.168.158.221/cdms(beta1)</connection-url>
<!--

Here are a couple of the possible OCI configurations.
For more information,see

<connection-url>jdbc:oracle:thin:@192.168.158.210:1521:xms</connection-url>
or
<connection-url>jdbc:oracle:oci:@(description=(address=(host=youroraclehost)(protocol=tcp)(port=1521))(connect_data=(SERVICE_NAME=yourservicename)))</connection-url>

Clearly,its better to have TNS set up properly.
-->
<driver-class>org.postgresql.Driver</driver-class>
<user-name>wxz</user-name>
<password>wxz</password>
<min-pool-size>5</min-pool-size>
<max-pool-size>15</max-pool-size>
<!-- Uses the pingDatabase method to check a connection is still valid before handing it out from the pool -->
<!--valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name-->
<!-- Checks the Oracle error codes and messages for fatal errors -->
<!-- sql to call when connection is created
<new-connection-sql>some arbitrary sql</new-connection-sql>
-->

<!-- sql to call on an existing pooled connection when it is obtained from pool - the OracleValidConnectionChecker is prefered
<check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>
-->

</local-tx-datasource>

</datasources>

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读