Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "CDO Server Configuration"

Line 5: Line 5:
  
 
   01  <?xml version="1.0" encoding="UTF-8"?>
 
   01  <?xml version="1.0" encoding="UTF-8"?>
   02  <[[#cdoServer|'''cdoServer''']]>
+
   02  <[[#Element cdoServer|'''cdoServer''']]>
 
   03   
 
   03   
   04    <'''acceptor''' type="tcp" listenAddr="0.0.0.0" port="2036">
+
   04    <[[#Element acceptor|'''acceptor''']] type="tcp" listenAddr="0.0.0.0" port="2036">
 
   05      <font color="green">''&lt;!--''</font>
 
   05      <font color="green">''&lt;!--''</font>
   06      <font color="green">''<negotiator type="challenge" description="/temp/users.db"/> ''</font>
+
   06      <font color="green">''<[[#negotiator |negotiator type="challenge" description="/temp/users.db"/> ''</font>
 
   07      <font color="green">''--&gt;''</font>
 
   07      <font color="green">''--&gt;''</font>
 
   08    </'''acceptor'''>
 
   08    </'''acceptor'''>
 
   09   
 
   09   
   10    <'''repository''' name="repo1">
+
   10    <[[#Element repository|'''repository''']] name="repo1">
   11      <'''property''' name="overrideUUID" value="1ff5d226-b1f0-40fb-aba2-0c31b38c764f"/>
+
   11      <'''property''' name="[[#Property overrideUUID|overrideUUID]]" value="1ff5d226-b1f0-40fb-aba2-0c31b38c764f"/>
   12      <'''property''' name="supportingAudits" value="true"/>
+
   12      <'''property''' name="[[#Property supportingAudits|supportingAudits]]" value="true"/>
   13      <'''property''' name="verifyingRevisions" value="false"/>
+
   13      <'''property''' name="[[#Property verifyingRevisions|verifyingRevisions]]" value="false"/>
   14      <'''property''' name="rememberingKnownTypes" value="false"/>
+
   14      <'''property''' name="[[#Property rememberingKnownTypes|rememberingKnownTypes]]" value="false"/>
   15      <'''property''' name="currentLRUCapacity" value="10000"/>
+
   15      <'''property''' name="[[#Property currentLRUCapacity|currentLRUCapacity]]" value="10000"/>
   16      <'''property''' name="revisedLRUCapacity" value="100"/>
+
   16      <'''property''' name="[[#Property revisedLRUCapacity|revisedLRUCapacity]]" value="100"/>
 
   17       
 
   17       
   18      <'''store''' type="db">
+
   18      <[[#Element store|'''store''']] type="db">
 
   19        <font color="green">''&lt;!-- mode: OFF | EXPRESS | NORMAL | GUARANTEED --&gt;''</font>
 
   19        <font color="green">''&lt;!-- mode: OFF | EXPRESS | NORMAL | GUARANTEED --&gt;''</font>
   20        <'''invalidationStrategy''' mode="EXPRESS"/>
+
   20        <[[#Element invalidationStrategy|'''invalidationStrategy''']] mode="EXPRESS"/>
 
   21         
 
   21         
 
   22        <font color="green">''&lt;!-- type: horizontal | vertical | <any user-contributed type>--&gt;''</font>
 
   22        <font color="green">''&lt;!-- type: horizontal | vertical | <any user-contributed type>--&gt;''</font>
   23        <'''mappingStrategy''' type="horizontal">
+
   23        <[[#Element mappingStrategy|'''mappingStrategy''']] type="horizontal">
 
   24          <font color="green">''&lt;!-- ONE_TABLE_PER_REFERENCE | ONE_TABLE_PER_CLASS | ONE_TABLE_PER_PACKAGE | ONE_TABLE_PER_REPOSITORY | LIKE_ATTRIBUTES --&gt;''</font>
 
   24          <font color="green">''&lt;!-- ONE_TABLE_PER_REFERENCE | ONE_TABLE_PER_CLASS | ONE_TABLE_PER_PACKAGE | ONE_TABLE_PER_REPOSITORY | LIKE_ATTRIBUTES --&gt;''</font>
   25          <'''property''' name="toManyReferences" value="ONE_TABLE_PER_REFERENCE"/>
+
   25          <'''property''' name="[[#Property toManyReferences|toManyReferences]]" value="ONE_TABLE_PER_REFERENCE"/>
 
   26   
 
   26   
 
   27          <font color="green">''&lt;!-- LIKE_ATTRIBUTES | LIKE_TO_MANY_REFERENCES--&gt;''</font>
 
   27          <font color="green">''&lt;!-- LIKE_ATTRIBUTES | LIKE_TO_MANY_REFERENCES--&gt;''</font>
   28          <'''property''' name="toOneReferences" value="LIKE_ATTRIBUTES"/>
+
   28          <'''property''' name="[[#Property toOneReferences|toOneReferences]]" value="LIKE_ATTRIBUTES"/>
 
   29           
 
   29           
 
   30          <font color="green">''&lt;!-- MODEL | STRATEGY--&gt;''</font>
 
   30          <font color="green">''&lt;!-- MODEL | STRATEGY--&gt;''</font>
   31          <'''property''' name="mappingPrecedence" value="MODEL"/>
+
   31          <'''property''' name="[[#Property mappingPrecedence|mappingPrecedence]]" value="MODEL"/>
 
   32        </'''mappingStrategy'''>
 
   32        </'''mappingStrategy'''>
 
   33         
 
   33         
Line 43: Line 43:
 
   38          <font color="green">''createDatabase="create"/>--&gt;''</font>
 
   38          <font color="green">''createDatabase="create"/>--&gt;''</font>
 
   39   
 
   39   
   40        <'''dbAdapter''' name="derby"/>
+
   40        <[[#Element dbAdapter|'''dbAdapter''']] name="derby"/>
   41        <'''dataSource'''  
+
   41        <[[#Element dataSource|'''dataSource''']]
 
   42          driverClass="org.apache.derby.jdbc.ClientDataSource"  
 
   42          driverClass="org.apache.derby.jdbc.ClientDataSource"  
 
   43          databaseName="cdodb1"
 
   43          databaseName="cdodb1"
Line 71: Line 71:
  
 
===Element acceptor===
 
===Element acceptor===
 +
<br>
 +
 +
===Element negotiator===
 
<br>
 
<br>
  

Revision as of 08:46, 14 November 2007


Example XML

This section shows an example XML configuration file for the CDO server. It must be located in the folder that you declared via system property net4j.config. The subsequent section explains the used XML Elements. You can also click directly on the links in the XML file to navigate to the respective descriptions.

 01  <?xml version="1.0" encoding="UTF-8"?>
 02  <cdoServer>
 03  
 04    <acceptor type="tcp" listenAddr="0.0.0.0" port="2036">
 05      <!--
 06      <[[#negotiator |negotiator type="challenge" description="/temp/users.db"/> 
 07      -->
 08    </acceptor>
 09  
 10    <repository name="repo1">
 11      <property name="overrideUUID" value="1ff5d226-b1f0-40fb-aba2-0c31b38c764f"/>
 12      <property name="supportingAudits" value="true"/>
 13      <property name="verifyingRevisions" value="false"/>
 14      <property name="rememberingKnownTypes" value="false"/>
 15      <property name="currentLRUCapacity" value="10000"/>
 16      <property name="revisedLRUCapacity" value="100"/>
 17      
 18      <store type="db">
 19        <!-- mode: OFF | EXPRESS | NORMAL | GUARANTEED -->
 20        <invalidationStrategy mode="EXPRESS"/>
 21        
 22        <!-- type: horizontal | vertical | <any user-contributed type>-->
 23        <mappingStrategy type="horizontal">
 24          <!-- ONE_TABLE_PER_REFERENCE | ONE_TABLE_PER_CLASS | ONE_TABLE_PER_PACKAGE | ONE_TABLE_PER_REPOSITORY | LIKE_ATTRIBUTES -->
 25          <property name="toManyReferences" value="ONE_TABLE_PER_REFERENCE"/>
 26  
 27          <!-- LIKE_ATTRIBUTES | LIKE_TO_MANY_REFERENCES-->
 28          <property name="toOneReferences" value="LIKE_ATTRIBUTES"/>
 29          
 30          <!-- MODEL | STRATEGY-->
 31          <property name="mappingPrecedence" value="MODEL"/>
 32        </mappingStrategy>
 33        
 34        <!--<dbAdapter name="derby"/>
 35        <dataSource
 36          driverClass="org.apache.derby.jdbc.EmbeddedDataSource"
 37          databaseName="/temp/cdodb1"
 38          createDatabase="create"/>-->
 39  
 40        <dbAdapter name="derby"/>
 41        <dataSource 
 42          driverClass="org.apache.derby.jdbc.ClientDataSource" 
 43          databaseName="cdodb1"
 44          createDatabase="create"/>
 45  
 46        <!--<dbAdapter name="hsqldb"/>
 47        <dataSource
 48          driverClass="org.eclipse.net4j.db.hsqldb.HSQLDBDataSource"
 49          database="jdbc:hsqldb:mem:cdodb1"
 50          user="sa"/>-->
 51  
 52        <!--<dbAdapter name="mysql"/>
 53        <dataSource
 54          driverClass="com.mysql.jdbc.jdbc2.optional.MysqlDataSource"
 55          url="jdbc:mysql://localhost/cdodb1"
 56          user="sa"/>-->
 57      </store>
 58    </repository>
 59  
 60  </cdoServer>


XML Elements

Element cdoServer


Element acceptor


Element negotiator


Element repository


Property overrideUUID


Property supportingAudits


Property verifyingRevisions


Property rememberingKnownTypes


Property currentLRUCapacity


Property revisedLRUCapacity


Element store


Element invalidationStrategy


Element mappingStrategy


Property toManyReferences


Property toOneReferences


Property mappingPrecedence


Element dbAdapter


Element dataSource




Wikis: CDO | Net4j | EMF | Eclipse

Back to the top