|
|
(38 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
− | __TOC__
| + | This article has moved: [[CDO Server Configuration Reference]] |
− | <br>
| + | |
− | ==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 <code>net4j.config</code>. The subsequent section explains the used [[#XML Elements|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|'''cdoServer''']]>
| + | |
− | 03
| + | |
− | 04 <'''acceptor''' type="tcp" listenAddr="0.0.0.0" port="2036">
| + | |
− | 05 <font color="green">''<!--''</font>
| + | |
− | 06 <font color="green">''<negotiator type="challenge" description="/temp/users.db"/> ''</font>
| + | |
− | 07 <font color="green">''-->''</font>
| + | |
− | 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 <font color="green">''<!-- mode: OFF | EXPRESS | NORMAL | GUARANTEED -->''</font>
| + | |
− | 20 <'''invalidationStrategy''' mode="EXPRESS"/>
| + | |
− | 21
| + | |
− | 22 <font color="green">''<!-- type: horizontal | vertical | <any user-contributed type>-->''</font>
| + | |
− | 23 <'''mappingStrategy''' type="horizontal">
| + | |
− | 24 <font color="green">''<!-- ONE_TABLE_PER_REFERENCE | ONE_TABLE_PER_CLASS | ONE_TABLE_PER_PACKAGE | ONE_TABLE_PER_REPOSITORY | LIKE_ATTRIBUTES -->''</font>
| + | |
− | 25 <'''property''' name="toManyReferences" value="ONE_TABLE_PER_REFERENCE"/>
| + | |
− | 26
| + | |
− | 27 <font color="green">''<!-- LIKE_ATTRIBUTES | LIKE_TO_MANY_REFERENCES-->''</font>
| + | |
− | 28 <'''property''' name="toOneReferences" value="LIKE_ATTRIBUTES"/>
| + | |
− | 29
| + | |
− | 30 <font color="green">''<!-- MODEL | STRATEGY-->''</font>
| + | |
− | 31 <'''property''' name="mappingPrecedence" value="MODEL"/>
| + | |
− | 32 </'''mappingStrategy'''>
| + | |
− | 33
| + | |
− | 34 <font color="green">''<!--<dbAdapter name="derby"/>''</font>
| + | |
− | 35 <font color="green">''<dataSource''</font>
| + | |
− | 36 <font color="green">''driverClass="org.apache.derby.jdbc.EmbeddedDataSource"''</font>
| + | |
− | 37 <font color="green">''databaseName="/temp/cdodb1"''</font>
| + | |
− | 38 <font color="green">''createDatabase="create"/>-->''</font>
| + | |
− | 39
| + | |
− | 40 <'''dbAdapter''' name="derby"/>
| + | |
− | 41 <'''dataSource'''
| + | |
− | 42 driverClass="org.apache.derby.jdbc.ClientDataSource"
| + | |
− | 43 databaseName="cdodb1"
| + | |
− | 44 createDatabase="create"/>
| + | |
− | 45
| + | |
− | 46 <font color="green">''<!--<dbAdapter name="hsqldb"/>''</font>
| + | |
− | 47 <font color="green">''<dataSource''</font>
| + | |
− | 48 <font color="green">''driverClass="org.eclipse.net4j.db.hsqldb.HSQLDBDataSource"''</font>
| + | |
− | 49 <font color="green">''database="jdbc:hsqldb:mem:cdodb1"''</font>
| + | |
− | 50 <font color="green">''user="sa"/>-->''</font>
| + | |
− | 51
| + | |
− | 52 <font color="green">''<!--<dbAdapter name="mysql"/>''</font>
| + | |
− | 53 <font color="green">''<dataSource''</font>
| + | |
− | 54 <font color="green">''driverClass="com.mysql.jdbc.jdbc2.optional.MysqlDataSource"''</font>
| + | |
− | 55 <font color="green">''url="jdbc:mysql://localhost/cdodb1"''</font>
| + | |
− | 56 <font color="green">''user="sa"/>-->''</font>
| + | |
− | 57 </'''store'''>
| + | |
− | 58 </'''repository'''>
| + | |
− | 59
| + | |
− | 60 </'''cdoServer'''>
| + | |
− | <br>
| + | |
− | | + | |
− | ==XML Elements==
| + | |
− | ===cdoServer===
| + | |
− | <br>
| + | |
− | <br>
| + | |
− | ----
| + | |
− | Wikis: [[CDO]] | [[Net4j]] | [[EMF]] | [[Eclipse]]
| + | |