blob: 1936e4bc5e384f21a77ace1e422e9a5aabdf11f0 [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="supportingUnits" value="false"/>
<property name="checkUnitMoves" value="false"/>
<property name="ensureReferentialIntegrity" value="false"/>
<property name="allowInterruptRunningQueries" value="true"/>
<property name="idGenerationLocation" value="CLIENT"/> <!-- Possible values: STORE | CLIENT -->
<property name="commitInfoStorage" value="WITH_MERGE_SOURCE"/> <!-- Possible values: NO | YES | WITH_MERGE_SOURCE -->
<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/418454
<adminRepository configurationManager="default" catalogPath="/catalog"/>
-->
<!-- Example http://bugs.eclipse.org/302775
<authenticator type="file" description="@config/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"/>
-->
<!-- Example http://bugs.eclipse.org/493598
<property name="jdbcFetchSize" value="10000"/>
-->
<!-- 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"/>
<property name="withRanges" value="false"/>
<property name="eagerTableCreation" value="false"/>
<!--
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:/develop/cdo-master/h2/big;LOCK_TIMEOUT=10000;TRACE_LEVEL_FILE=0"/>
<!-- 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/big"
user="test" password="0000"/>
-->
<!-- 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>