Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Getting Started With Dawn Web"

(New page: =Introduction= This tutorial is under construction! The Dawn Web Component at its current state is very experimental. This tutorial expectes that you have already installed the CDO works...)
 
(Download the sources)
Line 4: Line 4:
  
 
The Dawn Web Component at its current state is very experimental. This tutorial expectes that you have already installed the CDO worksspace as described here:
 
The Dawn Web Component at its current state is very experimental. This tutorial expectes that you have already installed the CDO worksspace as described here:
 +
 +
 +
=additional dependencies=
 +
 +
The Dawn Web Feature needs some external dependencies which can be retrieved from the following update site: http://mfdawn.sourceforge.net/dawn/
 +
  
 
=Download the sources=
 
=Download the sources=
Line 12: Line 18:
  
 
In addition you need some external sources, which can be retrieved from here:
 
In addition you need some external sources, which can be retrieved from here:
 +
 +
=Start the server=
 +
 +
Now start the server product as described in this [tutorial http://wiki.eclipse.org/Getting_started_with_CDO_Helios#Set_up_Eclipse].
 +
 +
Use the following cdo-server.xml
 +
 +
<pre>
 +
<?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">
 +
  </acceptor>
 +
 +
  <!--
 +
  <acceptor type="http"/>
 +
  -->
 +
 +
  <repository name="repo1">
 +
 +
    <property name="overrideUUID" value=""/>
 +
    <property name="supportingAudits" value="true"/>
 +
    <property name="supportingBranches" value="true"/>
 +
    <property name="supportingEcore" value="true"/>
 +
    <property name="ensureReferentialIntegrity" value="false"/>
 +
 +
    <!--
 +
    <userManager type="file" description="_database/repo1.users"/>
 +
    -->
 +
 +
    <store type="db">
 +
 +
      <mappingStrategy type="horizontalBranching">
 +
        <property name="qualifiedNames" value="false"/>
 +
        <property name="toManyReferences" value="ONE_TABLE_PER_REFERENCE"/>
 +
        <property name="toOneReferences" value="LIKE_ATTRIBUTES"/>
 +
 +
        <!--
 +
          Per default, the objectTypeCache is in-memory and contains
 +
          10,000,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.
 +
        -->
 +
        <!-- <property name="objectTypeCacheSize" value="10000000" /> -->
 +
      </mappingStrategy>
 +
 +
      <dbAdapter name="h2"/>
 +
      <dataSource class="org.h2.jdbcx.JdbcDataSource"
 +
        uRL="jdbc:h2:_database/repo1"/>
 +
 +
      <!--
 +
      <dbAdapter name="derby-embedded"/>
 +
      <dataSource class="org.apache.derby.jdbc.EmbeddedDataSource"
 +
        databaseName="/temp/repo1"
 +
        createDatabase="create"/>
 +
 +
      <dbAdapter name="hsqldb"/>
 +
      <dataSource class="org.eclipse.net4j.db.hsqldb.HSQLDBDataSource"
 +
        database="jdbc:hsqldb:mem:repo1"
 +
        user="sa"/>
 +
 +
      <dbAdapter name="mysql"/>
 +
      <dataSource class="com.mysql.jdbc.jdbc2.optional.MysqlDataSource"
 +
        url="jdbc:mysql://localhost/repo1"
 +
        user="sa"/>
 +
 +
      <dbAdapter name="postgresql"/>
 +
      <dataSource class="org.postgresql.ds.PGSimpleDataSource"
 +
        url="jdbc:postgresql://localhost:5432/repo1"
 +
        databaseName="repo1"
 +
        user="cdo"
 +
        password="cdo"/>
 +
      -->
 +
 +
    </store>
 +
 +
  </repository>
 +
 +
</cdoServer>
 +
</pre>

Revision as of 11:36, 4 February 2011

Introduction

This tutorial is under construction!

The Dawn Web Component at its current state is very experimental. This tutorial expectes that you have already installed the CDO worksspace as described here:


additional dependencies

The Dawn Web Feature needs some external dependencies which can be retrieved from the following update site: http://mfdawn.sourceforge.net/dawn/


Download the sources

First downlaod all source from here:

http://dev.eclipse.org/svnroot/modeling/org.eclipse.emf.cdo/trunk/incubation/DawnWeb/

In addition you need some external sources, which can be retrieved from here:

Start the server

Now start the server product as described in this [tutorial http://wiki.eclipse.org/Getting_started_with_CDO_Helios#Set_up_Eclipse].

Use the following cdo-server.xml

<?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">
  </acceptor>

  <!--
  <acceptor type="http"/>
  -->

  <repository name="repo1">

    <property name="overrideUUID" value=""/>
    <property name="supportingAudits" value="true"/>
    <property name="supportingBranches" value="true"/>
    <property name="supportingEcore" value="true"/>
    <property name="ensureReferentialIntegrity" value="false"/>

    <!--
    <userManager type="file" description="_database/repo1.users"/>
    -->

    <store type="db">

      <mappingStrategy type="horizontalBranching">
        <property name="qualifiedNames" value="false"/>
        <property name="toManyReferences" value="ONE_TABLE_PER_REFERENCE"/>
        <property name="toOneReferences" value="LIKE_ATTRIBUTES"/>

        <!--
          Per default, the objectTypeCache is in-memory and contains
          10,000,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.
        -->
        <!-- <property name="objectTypeCacheSize" value="10000000" /> -->
      </mappingStrategy>

      <dbAdapter name="h2"/>
      <dataSource class="org.h2.jdbcx.JdbcDataSource"
        uRL="jdbc:h2:_database/repo1"/>

      <!--
      <dbAdapter name="derby-embedded"/>
      <dataSource class="org.apache.derby.jdbc.EmbeddedDataSource"
        databaseName="/temp/repo1"
        createDatabase="create"/>

      <dbAdapter name="hsqldb"/>
      <dataSource class="org.eclipse.net4j.db.hsqldb.HSQLDBDataSource"
        database="jdbc:hsqldb:mem:repo1"
        user="sa"/>

      <dbAdapter name="mysql"/>
      <dataSource class="com.mysql.jdbc.jdbc2.optional.MysqlDataSource"
        url="jdbc:mysql://localhost/repo1"
        user="sa"/>

      <dbAdapter name="postgresql"/>
      <dataSource class="org.postgresql.ds.PGSimpleDataSource"
        url="jdbc:postgresql://localhost:5432/repo1"
        databaseName="repo1"
        user="cdo"
        password="cdo"/>
      -->

    </store>

  </repository>

</cdoServer>

Back to the top