Operating a CDO ServerArticle Link

 

Author: Eike Stepper

Table of Contents

1 Deploying a CDO Server
2 Starting a CDO Server
3 Stopping a CDO Server

1  Deploying a CDO ServerChapter Link

The easiest way to deploy a stand-alone CDO Server is to download the latest Eclipse Installer for the target environment:

When the Eclipse Installer is started, select the "CDO Server" application:

On the second page make sure you select the product version (of the CDO Server) that matches your clients' versions:

When the installation has finished the "eclipse" folder under the installation folder contains the cdo-server.xml configuration file, which looks similar to this:

cdo‑server.xml      
<?xml version="1.0" encoding="UTF-8"?>
<cdoServer>

  
<acceptor type="tcp" listenAddr="0.0.0.0" port="2036"/>

  
<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="STORE"/>
    
<property name="serializeCommits" value="false"/>
    
<property name="optimisticLockingTimeout" value="10000"/>

    
<store type="db">
      
<property name="connectionKeepAlivePeriod" value="60"/>
      
<property name="readerPoolCapacity" value="20"/>
      
<property name="writerPoolCapacity" value="20"/>

      
<mappingStrategy type="horizontal">
        
<property name="qualifiedNames" value="true"/>
      
</mappingStrategy>

      
<dbAdapter name="h2"/>

      
<dataSource
        class=
"org.h2.jdbcx.JdbcDataSource"
        URL=
"jdbc:h2:database/repo1"/>
    
</store>
  
</repository>

</cdoServer>

Please note that many repository configuration options can not be changed anymore after the repository has been started the first time.

See Also:

2  Starting a CDO ServerChapter Link

Starting a CDO Server differs a little bit depending on the target environment:

After successful start of the server the console should look similar to this:

Please note that many repository configuration options can not be changed anymore after the repository has been started the first time.

See Also:

3  Stopping a CDO ServerChapter Link

To gracefully shut down a running CDO server enter the command "close" into the console and confirm with "yes":

Net4j message connectors make a bounded best-effort attempt to drain scheduled messages and close their transport during regular lifecycle deactivation. The default wait is 2,000 milliseconds. Operators can set the org.eclipse.net4j.MessageConnector.gracefulCloseTimeout system property or configure an individual connector with org.eclipse.spi.net4j.MessageConnector.setGracefulCloseTimeout(long); zero selects immediate abort. Message production may continue during drainage, and the timeout does not bound unrelated cleanup or a provider call that blocks synchronously. Transport executors and other resources needed by providers must remain available until shutdown completes.

Please note that the DBStore supports automatic crash detection and recovery at startup time. Other store may or may not support similar functionality.