blob: 9b730ec34631bcf7b940f7efc1bd38baa502445d [file] [log] [blame]
<?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="supportingEcore" value="true"/>
<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
<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">
<!-- 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: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"
url="jdbc:postgresql://localhost:5432/repo1"
databaseName="repo1"
user="cdo"
password="cdo"/>
-->
<!-- Example:
<dbAdapter name="oracle"/>
<dataSource class="oracle.jdbc.pool.OracleDataSource"
url="jdbc:oracle:thin:@localhost:1521:xe"
user="username"
password="password"/>
-->
</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>