summaryrefslogtreecommitdiffstats
blob: 3bf0040bafdb4f1d22ce08bdaf41ca18872bb9d3 (plain)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<?xml version="1.0" encoding="UTF-8"?>
<cdoServer>

  <!-- ============================================================== -->
  <!-- See http://wiki.eclipse.org/CDO/Server_Configuration_Reference -->
  <!-- ============================================================== -->

  <acceptor type="tcp" listenAddr="0.0.0.0" port="2036"/>

  <!-- Examples:
  		<acceptor type="ssl" listenAddr="0.0.0.0" port="2036"/>
	  	<acceptor type="http"/>
  -->

  <repository name="repo1">

    <property name="overrideUUID" value=""/>
    <property name="supportingAudits" value="true"/>
    <property name="supportingBranches" value="true"/>
    <property name="ensureReferentialIntegrity" value="false"/>
    <property name="allowInterruptRunningQueries" value="true"/>
    <property name="idGenerationLocation" value="STORE"/> <!-- Possible values: STORE | CLIENT -->
    <property name="serializeCommits" value="false"/>
    <property name="optimisticLockingTimeout" value="10000"/>

    <!-- Example http://wiki.eclipse.org/CDO/Security_Manager
		  <securityManager type="default" description="/security:annotation:home(/home)"/>
    -->

    <!-- Example http://bugs.eclipse.org/302775
			<authenticator type="file" description="_database/repo1.users"/>
    -->

    <!-- Example http://bugs.eclipse.org/345431
			<initialPackage nsURI="http://www.eclipse.org/emf/CDO/examples/company/1.0.0"/>
    -->

    <store type="db">

      <!-- Example http://bugs.eclipse.org/396379 (if idGenerationLocation == CLIENT)
	      <property name="idColumnLength" value="34"/>
			-->

      <!-- Period at which to execute an SQL statement to keep DB connection alive, in minutes -->
      <property name="connectionKeepAlivePeriod" value="60"/>

      <!-- Maximum number of store accessors (JDBC connections) to keep in the reader pool. The default value is 15.  -->
      <property name="readerPoolCapacity" value="20"/>

      <!-- Maximum number of store accessors (JDBC connections) to keep in the writer pool. The default value is 15.  -->
      <property name="writerPoolCapacity" value="20"/>

      <mappingStrategy type="horizontal"> <!-- callout -->
        <property name="qualifiedNames" value="true"/>

        <!--
          Per default, the objectTypeCache is in-memory and contains
          100,000 cache entries. If you want to change the size,
          uncomment the following line and set the desired size.
          The cache can be disabled by setting a size of 0.
        -->

        <!-- Optional:
        <property name="objectTypeCacheSize" value="100000"/>
        -->

      </mappingStrategy>

      <dbAdapter name="h2"/>
      <dataSource class="org.h2.jdbcx.JdbcDataSource"
        URL="jdbc:h2:database/repo1"/>

      <!-- Example:
      <dbAdapter name="derby-embedded"/>
      <dataSource class="org.apache.derby.jdbc.EmbeddedDataSource"
        databaseName="/temp/repo1"
        createDatabase="create"/>
      -->

      <!-- Example:
      <dbAdapter name="hsqldb"/>
      <dataSource class="org.eclipse.net4j.db.hsqldb.HSQLDBDataSource"
        database="jdbc:hsqldb:file:/temp/repo1"
        user="sa"/>
      -->

      <!-- Example:
      <dbAdapter name="mysql"/>
      <dataSource class="com.mysql.jdbc.jdbc2.optional.MysqlDataSource"
        url="jdbc:mysql://localhost/repo1"
        user="sa"/>
      -->

      <!-- Example:
      <dbAdapter name="postgresql"/>
			<dataSource class="org.postgresql.ds.PGSimpleDataSource"
				serverName="localhost"
				portNumber="5432"
				databaseName="repo1"
				user="postgres"
				password="postgres"/>
      -->

      <!-- Example:
			<dbAdapter name="oracle"/>
			<dataSource class="oracle.jdbc.pool.OracleDataSource"
				driverType="thin"
				serverName="localhost"
				portNumber="1521"
				databaseName="TEST"
				user="cdotest"
				password="oracle"/>
			-->

    </store>

    <!-- ONLY THE FIRST CONFIGURED STORE IS USED FOR THE REPOSITORY!!! -->

    <store type="mongodb">
      <property name="uri" value="mongodb://localhost"/>
      <property name="db" value="cdodb"/>
      <!-- Optional:
      <property name="drop" value="true"/>
      -->
    </store>

  </repository>

  <!-- Example of a DB4O repo/store:
  <repository name="repo1">
    <property name="supportingAudits" value="false"/>
    <property name="supportingBranches" value="false"/>
    <store type="db4o">
      <property name="path" value="/tmp/cdodb4.db4o"/>
      <property name="port" value="50032"/>
    </store>
  </repository>
  -->

</cdoServer>