-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopennms-datasources.xml
53 lines (44 loc) · 2.37 KB
/
opennms-datasources.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?xml version="1.0" encoding="UTF-8"?>
<datasource-configuration xmlns:this="http://xmlns.opennms.org/xsd/config/opennms-datasources"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.opennms.org/xsd/config/opennms-datasources
http://www.opennms.org/xsd/config/opennms-datasources.xsd ">
<!--
Available implementations:
org.opennms.core.db.AtomikosDataSourceFactory
- Uses Atomikos TransactionEssentials (http://www.atomikos.com/Main/TransactionsEssentials)
This data source is XA-capable so that it works properly with Hibernate 4.
org.opennms.core.db.C3P0ConnectionFactory
- Uses C3P0 (http://sourceforge.net/projects/c3p0/).
This data source is not XA-capable but is available because it was the default
datasource on OpenNMS 1.12. It is well tested as a reliable database pool.
The following datasources are not "transaction aware" (XA) so are not compatible
with OpenNMS 1.13 and higher which will use Hibernate 4, Spring 3.1+, and the Java
Transaction API (JTA) to perform data access and transaction processing. The
following data sources are obsolete and have been removed from OpenNMS.
org.opennms.netmgt.config.DBPoolConnectionFactory
- Uses DBPool (http://www.snaq.net/java/DBPool/) An alternate high-performance pool.
Extremely experimental.
org.opennms.netmgt.config.TomcatJdbcPoolConnectionFactory
- Uses Tomcat DBCP (http://people.apache.org/~fhanik/jdbc-pool/jdbc-pool.html) A
highly concurrent pooling API. Extremely experimental.
-->
<connection-pool factory="org.opennms.core.db.C3P0ConnectionFactory"
idleTimeout="600"
loginTimeout="3"
minPool="50"
maxPool="50"
maxSize="50" />
<jdbc-data-source name="opennms"
database-name="opennms"
class-name="org.postgresql.Driver"
url="jdbc:postgresql://PG_HOST:PG_PORT/opennms"
user-name="opennms"
password="opennms" />
<jdbc-data-source name="opennms-admin"
database-name="template1"
class-name="org.postgresql.Driver"
url="jdbc:postgresql://PG_HOST:PG_PORT/template1"
user-name="postgres"
password="PG_PASSWORD" />
</datasource-configuration>