Skip to main content
Jump to: navigation, search

Getting Started With Dawn Web


Note: 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. It is recommended to use the latest Indigo builds for this tutorial.


In addtion the the prepearation done in the above mentioned tutorial youo need to install the Subversice Team Provider from the Indigo Update site because we will check out some sources from SVN.

Dawn svn team provider.jpg

Additional dependencies

The Dawn Web Feature needs some external dependencies which can be retrieved from the following update site:

Download the sources

First downlaod all source from here:

Dawn web checkout.JPG

Start the server

Now start the server product as described in this tutorial.

Use the following cdo-server.xml

<?xml version="1.0" encoding="UTF-8"?>

    <!-- See -->

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

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

      <dbAdapter name="h2"/>
      <dataSource class="org.h2.jdbcx.JdbcDataSource"

      <dbAdapter name="derby-embedded"/>
      <dataSource class="org.apache.derby.jdbc.EmbeddedDataSource"

      <dbAdapter name="hsqldb"/>
      <dataSource class="org.eclipse.net4j.db.hsqldb.HSQLDBDataSource"

      <dbAdapter name="mysql"/>
      <dataSource class="com.mysql.jdbc.jdbc2.optional.MysqlDataSource"

      <dbAdapter name="postgresql"/>
      <dataSource class="org.postgresql.ds.PGSimpleDataSource"




Start the Web server

Letz start the webserver by execution the run configuration in the checked out org.eclipse.emf.cdo.dawn.web project.

Dawn web start web server.JPG

Create an example

Let's start a new runtime instance. This will contain Dawn and it's examples. Just create a new "Dawn Acore Diagram" using the appropriate Wizard. If you need some support you could check out this tutorial

Create a simple AClass and save the diagram.

Dawn web diagram.JPG

Play in the web

Enter the following url in your browser:


Dawn web browser.JPG

Play a bit with the diagram and see what happens:

  • move the node in the Eclipse instance
  • resize it in the Eclipse instance
  • rename the node and add some attributes
  • move the node in the browser window
  • try the rename the node in the browser as you are used to do it in the Eclipse instance

Back to the top