开发者

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 comm开发者_如何转开发unicating 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?


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!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜