Skip to content

Instantly share code, notes, and snippets.

@pedro-hos
Last active August 29, 2015 14:05
Show Gist options
  • Save pedro-hos/65309606b60c899f4f8f to your computer and use it in GitHub Desktop.
Save pedro-hos/65309606b60c899f4f8f to your computer and use it in GitHub Desktop.
standalone.xml PostgreSQL
<datasource jta="true" jndi-name="java:jboss/datasources/PostgreSQLDS" pool-name="PostgreSQLDS" enabled="true" use-java-context="true">
<connection-url>jdbc:postgresql://localhost:5432/SEU_BD_AQUI</connection-url>
<driver>postgresql</driver>
<transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
<pool>
<min-pool-size>10</min-pool-size>
<max-pool-size>100</max-pool-size>
<prefill>true</prefill>
</pool>
<security>
<user-name>SEU_USUARIO</user-name>
<password>SUA_SENHA</password>
</security>
<statement>
<prepared-statement-cache-size>32</prepared-statement-cache-size>
<share-prepared-statements>true</share-prepared-statements>
</statement>
</datasource>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment