Advertisement
Guest User

Untitled

a guest
Apr 10th, 2017
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 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/JavaHostel" pool-name="javaHostelPool" enabled="true" use-java-context="true" use-ccm="true">
  11. <connection-url>jdbc:mysql://localhost:3306/javahostel</connection-url>
  12. <driver>mysql</driver>
  13. <security>
  14. <user-name>javahostel</user-name>
  15. <password>javahostel</password>
  16. </security>
  17. <statement>
  18. <prepared-statement-cache-size>100</prepared-statement-cache-size>
  19. <share-prepared-statements>true</share-prepared-statements>
  20. </statement>
  21. </datasource>
  22. <drivers>
  23. <driver name="h2" module="com.h2database.h2">
  24. <xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
  25. </driver>
  26. <driver name="mysql" module="com.mysql"/>
  27. </drivers>
  28. </datasources>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement