Advertisement
Guest User

Untitled

a guest
Aug 10th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. <datasources>
  2. <datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">
  3. <connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE</connection-url>
  4. <driver>h2</driver>
  5. <security>
  6. <user-name>sa</user-name>
  7. <password>sa</password>
  8. </security>
  9. </datasource>
  10. <datasource jta="true" jndi-name="java:jboss/datasources/PostgreSQLDS" pool-name="PostgreSQLDS" enabled="true" use-java-context="true">
  11. <connection-url>jdbc:postgresql://localhost:5432/lucasmucida</connection-url>
  12. <driver>postgresql</driver>
  13. <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
  14. <pool>
  15. <min-pool-size>10</min-pool-size>
  16. <max-pool-size>100</max-pool-size>
  17. <prefill>true</prefill>
  18. </pool>
  19. <security>
  20. <user-name>xxx</user-name>
  21. <password>xxx</password>
  22. </security>
  23. <statement>
  24. <prepared-statement-cache-size>32</prepared-statement-cache-size>
  25. <share-prepared-statements>true</share-prepared-statements>
  26. </statement>
  27. </datasource>
  28. <drivers>
  29. <driver name="h2" module="com.h2database.h2">
  30. <xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
  31. </driver>
  32. <driver name="postgresql" module="org.postgresql">
  33. <xa-datasource-class>org.postgresql.xa.PGXADataSourc</xa-datasource-class>
  34. </driver>
  35. </drivers>
  36. </datasources>
  37.  
  38. <?xml version="1.0" encoding="UTF-8"?>
  39. <module xmlns="urn:jboss:module:1.0" name="org.postgresql">
  40. <resources>
  41. <resource-root path="postgresql-42.1.4.jar"/>
  42. </resources>
  43. <dependencies>
  44. <module name="javax.api"/>
  45. <module name="javax.transaction.api"/>
  46. </dependencies>
  47. </module>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement