CDO committed to CVS [message #573097] |
Sun, 02 April 2006 09:58 |
|
Hi All,
CDO is a client/server based framework for *Distributed Shared EMF Models*
For those who like to play with the newest CDO version, it is now
properly in the EMFT CVS.
Here are the setup steps to let the example run:
1) Download mysql from http://dev.mysql.com/downloads/mysql/5.0.html
I use 4.11-nt, but 5.0 should also work. Will test that later...
2) Install (defaults, but with transactions, 4.11-nt) and start it.
3) Create a user "test" with password "test"
4) Install the test database (the script is in the
org.eclipse.emf.cdo.example.client plugin):
@echo off
set USER=test
set PASSWORD=test
set DATABASE=cdoTest
mysql -u %USER% -p%PASSWORD% -e "drop database if exists %DATABASE%;
create database %DATABASE%" mysql
5) Checkout all plugins from net4j *and* cdo modules in EMFT
(net4j.tests are not needed)
6) Download the Mysql JDBC Driver from
http://dev.mysql.com/downloads/connector/j/3.1.html
7) Copy mysql-connector-java-3.1.12-bin.jar to the lib folder of
org.eclipse.emf.cdo.jdbc.mysql.
8) Start the launch config "CDO Server". This is an Eclipse headless
launch! You should see the startup in the host console.
9) Start the launch config "CDO Client1". This is an Eclipse IDE launch!
You should see the startup in the host console.
10) In the client, open the view "CDO Explorer". It is empty for now.
Here you can create new CDO resources.
11) To have 2 initially populated remote resources, you can also hit the
first of the ugly Eclipse buttons "Create Library CDO Resources".
12) You can open the CDOEditor by double clicking into the CDOExplorer
viewer. Other resources can be loaded with "Load Resource..."
When you hit "Save", a transactional commit happens for the whole
ResourceSet. Only changes are committed and other clients are notified
over the net so that they can update their UI. I can't test this at the
moment (see below).
==> Step 11 demonstrates that resources can be committed to the db on
model level. But unfortunately the editor does not permit any changes. I
have no idea at the moment, why it doesn't ;-(
I assume it's something trivial that I did not trace while EMF evolved.
All hints appreciated!!!
Happy sharing ;-)
/Eike
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Powered by
FUDForum. Page generated in 0.02305 seconds