Skip to content

Instantly share code, notes, and snippets.

@ehsanullahjan
Created September 28, 2016 16:51
Show Gist options
  • Save ehsanullahjan/7080b13a1e2a71e71e7602bac4e7e987 to your computer and use it in GitHub Desktop.
Save ehsanullahjan/7080b13a1e2a71e71e7602bac4e7e987 to your computer and use it in GitHub Desktop.
# PostgreSQL
xa-data-source add --name={{data-source-name}} --jndi-name={{jndi-name}} --driver-name=postgres --user-name={{username}} --password={{password}} --use-java-context=true --min-pool-size=1 --max-pool-size=10 --idle-timeout-minutes=3 --background-validation=false --validate-on-match=true --valid-connection-checker-class-name="org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLValidConnectionChecker" --exception-sorter-class-name="org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLExceptionSorter" --xa-datasource-properties={ServerName={{host}},PortNumber=5432,DatabaseName={{database}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment