Sunday, April 26, 2009

I just finished the second part of my article "Modeling goes Enterprise - About EMF and CDO". It will be published in the Eclipse Magazin next month. Thanks to Sebastian Meyen and Hartmut Schlosser I'm allowed to make the example application, discussed in the article, available in the Eclipse CVS!

The splash picture was taken in my kitchen

The example is a set of applications (IDE, headless, 3x RCP, Servlet) used to support the business of the electronic restaurant "eDine", where they have touch computers at all the tables and at the bar and in the kitchen. Special RCP applications operate on a distributed shared EMF model which is provided by a headless CDO repository server.

That is funny! On the plane I just read the first part of your article in Eclipse Magazin. I really like it. In fact, after reading the article I am thinking about using CDO for the application I am working on right now...

And hopefully the article and the example app make some of the benefits of modeling clear as well:

If you look into the code you'll notice that the whole system is mainly generated with EMF's default templates or "painted" with SWT Designer. The presentation logic is coded in a few lines against the business model or standard EMF APIs.

According to your stack trace the CDO version you're working with is not the latest one. In HEAD there's an IllegalArgumentException telling about llegal use of external references. Can you check again with the HEAD version of CDO and report the complete stack trace via Bugzilla or the EMF newsgroup?

Hi Eike,I receive an error similar to that of Stefan, but not the same:

ReceiveSerializer-Channel[1, CLIENT] [debug.signal] Received buffer for correlation -36[ERROR] Rollback in DBStore: java.lang.IllegalArgumentException: DBStore does not support external references: oidcdo://gastro/eDine/inventory#1/41 at org.eclipse.emf.cdo.server.db.CDODBUtil.getLong(CDODBUtil.java:140)

it seems that I have the latest CDO, at least I see the IllegalArgumentException you mentioned, what then can be wrong?

Vincenzo, No worries: Getting it up and running for the first time is often hard. Btw. Wasn't it you being interested in translating CDO to Italian? Vik just registered CDO and Net4j with the Babel translation server...

Another thing: it's ok for us to translate language packs files, but we would be much more interested (if it can help) into translating tutorials and documentation.Here we usually see people using the IDE and tools in English, while tutorials and documentation are usually asked in italian.

Translating the documentation is interesting,too! But I've just begun to fill the manual. As you can see with the "Expand All" button there's lots of work left. The web manual is generated out of DITA sources stored in CVS. I've yet not thought about how to make this multi-lingual...

I'm tryin to run the example for the first time but as I run the org.gastro.server I got the error : "Cannot locate JRE definition : jdk1.5.0_22. Launch aborted" , then I've tried to change the GastroServer.launch manually and change the jdk to my version but I got the same error , so please help me to fix it

I'm afraid that I can not help with this kind of "environmental" problem unless sitting in front of it. By "manually" you don't mean with a text editor, eh? I'm sure that, if you use the JDT/PDE/OSGi tools of Eclipse, you should be able to launch with your JRE.

thx Vincenzo , ja I've tried it but now the problem is something else and I think I've checked out the wrong version of this example so can anyone tell me exactly where can I find the right version ? because I could just find it in "org.eclipse.emf.cdo.deprecated" and nowhere else , I've also tried to download cdo-gastro-example.psf and import it but it doesn't work .I'm new to this , therefor I ask this kind of basic questions !