Created
August 24, 2020 23:51
-
-
Save nagetsum/ff198f548727d0f0e64031a6ec51ebeb to your computer and use it in GitHub Desktop.
Example postgres-ds.xml for AS5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- ===================================================================== --> | |
<!-- --> | |
<!-- JBoss Server Configuration --> | |
<!-- --> | |
<!-- ===================================================================== --> | |
<!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about local-tx-datasource --> | |
<!-- $Id: postgres-ds.xml 106351 2010-06-30 19:17:22Z rrajesh $ --> | |
<!-- ==================================================================== --> | |
<!-- Datasource config for Postgres --> | |
<!-- ==================================================================== --> | |
<datasources> | |
<local-tx-datasource> | |
<!-- lookup for java:/PostgresDS --> | |
<jndi-name>PostgresDS</jndi-name> | |
<connection-url>jdbc:postgresql://localhost:5432/postgres</connection-url> | |
<driver-class>org.postgresql.Driver</driver-class> | |
<user-name></user-name> | |
<password></password> | |
<min-pool-size>10</min-pool-size> | |
<max-pool-size>10</max-pool-size> | |
<check-valid-connection-sql>select 1</check-valid-connection-sql> | |
<!-- sql to call when connection is created. Can be anything, select 1 is valid for PostgreSQL | |
<new-connection-sql>select 1</new-connection-sql> | |
--> | |
<!-- sql to call on an existing pooled connection when it is obtained from pool. Can be anything, select 1 is valid for PostgreSQL | |
<check-valid-connection-sql>select 1</check-valid-connection-sql> | |
--> | |
<!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) --> | |
<metadata> | |
<type-mapping>PostgreSQL</type-mapping> | |
</metadata> | |
</local-tx-datasource> | |
</datasources> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment