Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EMF editor using remote model through RMI
EMF editor using remote model through RMI [message #1053356] Sat, 04 May 2013 11:44 Go to next message
Gregor Fichtental is currently offline Gregor FichtentalFriend
Messages: 3
Registered: May 2013
Junior Member
Hello,
I have following situation:
I generate an EMF model from annotated Java, and then a Generator Model creates the standard Edit and Editor plugins for this model.
The EMF model is then moved to a powerful server, which takes care of the actual workload.
The Edit/Editor plugins remain on the client and communicate though RMI (Java Remote Objects) with the server.

This was easy to implement for a simple model with only two classes and a few methods. But the model is constantly developed and will soon include some hundred classes with several methods each.

Is there any possibility to have the generated Edit/Editor plugins automatically include the RMI communication code?

Thanks
Gregor
Re: EMF editor using remote model through RMI [message #1053459 is a reply to message #1053356] Mon, 06 May 2013 06:00 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Gregor,

No, there's no direct support for RMI. But primarily that involves
serializing instances and exchanging those serializations and EMF is
quite good at producing exchangeable serializations...


On 06/05/2013 3:36 AM, Gregor Fichtental wrote:
> Hello,
> I have following situation:
> I generate an EMF model from annotated Java, and then a Generator
> Model creates the standard Edit and Editor plugins for this model.
> The EMF model is then moved to a powerful server, which takes care of
> the actual workload.
> The Edit/Editor plugins remain on the client and communicate though
> RMI (Java Remote Objects) with the server.
>
> This was easy to implement for a simple model with only two classes
> and a few methods. But the model is constantly developed and will soon
> include some hundred classes with several methods each.
>
> Is there any possibility to have the generated Edit/Editor plugins
> automatically include the RMI communication code?
>
> Thanks
> Gregor


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: EMF editor using remote model through RMI [message #1053464 is a reply to message #1053356] Mon, 06 May 2013 06:57 Go to previous messageGo to next message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 854
Registered: July 2009
Senior Member
Did you have a look at EMFStore? It uses RMI to persist ecore models (XMI) to a server and can handle all the communications. The project mentions to be able to handle model evolutions as well.

Gregor Fichtental wrote on Sat, 04 May 2013 13:44
Hello,
I have following situation:
I generate an EMF model from annotated Java, and then a Generator Model creates the standard Edit and Editor plugins for this model.
The EMF model is then moved to a powerful server, which takes care of the actual workload.
The Edit/Editor plugins remain on the client and communicate though RMI (Java Remote Objects) with the server.

This was easy to implement for a simple model with only two classes and a few methods. But the model is constantly developed and will soon include some hundred classes with several methods each.

Is there any possibility to have the generated Edit/Editor plugins automatically include the RMI communication code?

Thanks
Gregor

Re: EMF editor using remote model through RMI [message #1053513 is a reply to message #1053459] Mon, 06 May 2013 11:02 Go to previous messageGo to next message
Gregor Fichtental is currently offline Gregor FichtentalFriend
Messages: 3
Registered: May 2013
Junior Member
The serialisation is not a problem, it is done by RMI.
The only problem was that I have to modify the generated editor after each change to the model. I am now working on making the generated editor more generic and take all its itemproviders, menu entries etc. dynamically from the information in the EPackage.

I think a generic editor plugin would be useful for many situations. Why is the editor plugin generated for each input model to statically include all features? Can we expect a significant speedup from the existing implementation?

Thanks
Gregor
Re: EMF editor using remote model through RMI [message #1053514 is a reply to message #1053464] Mon, 06 May 2013 11:06 Go to previous messageGo to next message
Gregor Fichtental is currently offline Gregor FichtentalFriend
Messages: 3
Registered: May 2013
Junior Member
Thank you, I didn't know about EMFStore. I don't see how it helps for this problem, but it will be definitely helpful elsewhere in my project.

Gregor
Re: EMF editor using remote model through RMI [message #1053531 is a reply to message #1053513] Mon, 06 May 2013 12:11 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Gregor,

Comments below.

On 06/05/2013 1:02 PM, Gregor Fichtental wrote:
> The serialisation is not a problem, it is done by RMI.
I thought it generally use java.io.Serializeable....
> The only problem was that I have to modify the generated editor after
> each change to the model.
Mark your changes @generated not, or simple stop generating the editor.
> I am now working on making the generated editor more generic
It pretty much is generic already anyway; try deleting the dependency on
your generated *.edit project and you'll see there are only a few lines
that are model specific (and even these aren't necessary)...
> and take all its itemproviders, menu entries etc. dynamically from the
> information in the EPackage.
Yes, example from the ComposeItemProviderAdapterFactory.
>
> I think a generic editor plugin would be useful for many situations.
Yes, I've started working on one.
> Why is the editor plugin generated for each input model to statically
> include all features?
So that folks would feel comfortable that they have complete control and
can change any part of it to suit their own wishes.
> Can we expect a significant speedup from the existing implementation?
No, not really, it's pretty much a copy of a generic editor.
>
> Thanks
> Gregor


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Existing Java Source Code to EMF model
Next Topic:Backslashes and spaces in EMF URI's
Goto Forum:
  


Current Time: Fri Mar 29 12:20:57 GMT 2024

Powered by FUDForum. Page generated in 0.03876 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top