Arne Deutsch
Arne Deutsch

Reputation: 14779

How to design a Eclipse RCP (Client/Server) using EMF for the model?

We are planing a project where we will have an eclipse based client communicating with an glassfish server (+ Oracle database). The business logic will reside on the server, the client should act more or less as an view. We consider using EMF for our model (+ hibernate + teneo).

I'm not quite sure how this all works together. The workflow/architecture/whatever I imagine is something like this:

  1. Create EMF model
  2. Generate java model (+ edit code) from it
  3. Use java model on the server together with hibernate/teneo to persist model objects in database
  4. Create a SOAP interface in the server, serialize model objects to XML as appropriate
  5. Use model on the client to access the SOAP interface of the server, serialize/deserialize model objects from/to XML and display (parts of the whole) model in eclipse

Is this basicly how it is intended? Or have I missed a central concept?

Upvotes: 3

Views: 1422

Answers (1)

parasietje
parasietje

Reputation: 1539

The link you are missing is called CDO. You can use this to transfer a live model to your client. So replace SOAP with CDO, and you are there!

Upvotes: 2

Related Questions