Advertisement
Guest User

datasources

a guest
Sep 26th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <datasource-configuration xmlns:this="http://xmlns.opennms.org/xsd/config/opennms-datasources"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://xmlns.opennms.org/xsd/config/opennms-datasources
  5. http://www.opennms.org/xsd/config/opennms-datasources.xsd ">
  6.  
  7. <!--
  8. Available implementations:
  9.  
  10. org.opennms.core.db.AtomikosDataSourceFactory
  11. - Uses Atomikos TransactionEssentials (http://www.atomikos.com/Main/TransactionsEssentials)
  12. This data source is XA-capable so that it works properly with Hibernate 4.
  13.  
  14. org.opennms.core.db.C3P0ConnectionFactory
  15. - Uses C3P0 (http://sourceforge.net/projects/c3p0/).
  16. This data source is not XA-capable but is available because it was the default
  17. datasource on OpenNMS 1.12. It is well tested as a reliable database pool.
  18.  
  19. org.opennms.core.db.HikariCPConnectionFactory
  20. - Uses HikariCP (http://brettwooldridge.github.io/HikariCP/), a lightweight and extremely fast connection pool
  21. -->
  22. <connection-pool factory="org.opennms.core.db.C3P0ConnectionFactory"
  23. idleTimeout="600"
  24. loginTimeout="3"
  25. minPool="50"
  26. maxPool="50"
  27. maxSize="50" />
  28.  
  29. <jdbc-data-source name="opennms"
  30. database-name="opennms"
  31. class-name="org.postgresql.Driver"
  32. url="jdbc:postgresql://localhost:5432/opennms"
  33. user-name="opennms"
  34. password="opennms" />
  35.  
  36. <jdbc-data-source name="opennms-admin"
  37. database-name="template1"
  38. class-name="org.postgresql.Driver"
  39. url="jdbc:postgresql://localhost:5432/template1"
  40. user-name="postgres"
  41. password="" />
  42. </datasource-configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement