Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 529388b34527f6cb8d1a5f4c6f945dcc5207d985 (plain) (blame)
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
<?xml version="1.0" encoding="UTF-8"?>
<cdoServer>

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

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

  <repository name="repo1">

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

    <!-- Example http://bugs.eclipse.org/380629
			<securityManager type="default" realmPath="/security"/>
			<securityManager type="annotation" realmPath="/security"/>
    -->

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

    <!-- Example http://bugs.eclipse.org/34583
			<userManager type="TestRepository" description="repo1"/>
    -->

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

    <store type="db">

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

      <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:mem: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="cdo"
				password="cdo"/>
      -->

    </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>

Back to the top