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:
- Create EMF model
- Generate java model (+ edit code) from it
- Use java model on the server together with hibernate/teneo to persist model objects in database
- Create a SOAP interface in the server, serialize model objects to XML as appropriate
- 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!
精彩评论