Skip to main content
aboutsummaryrefslogblamecommitdiffstats
blob: 60f1725fccda32571d35bafec50132ef237fb787 (plain) (tree)


















                                                                         

                                                                
                                                                                                   

                                                             

                                               
                                                                                                      


                                               
                                                                                        







                                                                                                       



                                                                                     



















                                                                                                                         
                                                             

















                                                                      
                                               











                                                                       



                                                                                

                                                     

         

                                                  






                                                                             

                           

























                                                                          
<?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="CLIENT"/> <!-- Possible values: STORE | CLIENT -->
    <property name="serializeCommits" value="false"/>
    <property name="optimisticLockingTimeout" value="10000"/>

    <!-- Example http://bugs.eclipse.org/380629
			<securityManager type="default" realmPath="/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="serverURL"
				portNumber="1521"
				databaseName="SID"
				user="user"
				password="passwd"/>
			-->

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