Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [GWT] Using Teneo for persistance architecture questions
[GWT] Using Teneo for persistance architecture questions [message #792863] Tue, 07 February 2012 14:01 Go to next message
Sébastien  Gandon is currently offline Sébastien GandonFriend
Messages: 184
Registered: July 2009
Senior Member
Hello,
we have a big web application that is using GWT for the client app.
We are using EMF for our data model on the server side and it is persisted using Teneo/Hibernate.
Today we are creating beans that mirror our EMF objects to be sent to/from the client to/from the server.
We think we may save some extra coding and gain in clearness and may be performances by using the GWT version of our EMF model.
Does anyone have done that ?

I do not find much of a documentation on the EMF-GWT architecture online and I would like to have an example on how to create EMF object on the client and on the server, and transmit them to the server or the client.
The sole example I have come across in the one on the EMF/GWT wiki, but first I can manage to make it work (see my previous post), second it is tied to the Google App Engine.
By the way I hope the App Engine is not compulsory if you stay at the model level ? we do not need the generated editor.
And third where are the EMF-GMF editor classes located, actually I have found the editor (org.eclipse.emf.edit.ui.EditorEntryPoint) but where is the server side ?

I am sorry for so much questions, but this is a promising technology but I am afraid I do not find to much documentation yet.

Thanks.

SeB.
Re: [GWT] Using Teneo for persistance architecture questions [message #792958 is a reply to message #792863] Tue, 07 February 2012 15:52 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Sébastien,

Comments below.

On 07/02/2012 3:01 PM, Sébastien Gandon wrote:
> Hello,
> we have a big web application that is using GWT for the client app. We
> are using EMF for our data model on the server side and it is
> persisted using Teneo/Hibernate.
> Today we are creating beans that mirror our EMF objects to be sent
> to/from the client to/from the server.
> We think we may save some extra coding and gain in clearness and may
> be performances by using the GWT version of our EMF model.
> Does anyone have done that ?
The generated model code for GWT should be shareable between the GWT
runtime and the standard runtime...
>
> I do not find much of a documentation on the EMF-GWT architecture online
No, sorry.
> and I would like to have an example on how to create EMF object on the
> client and on the server, and transmit them to the server or the client.
The generated example does that. It relies on BinaryResourceImpl to
send a compact representation between the client and the server (in both
directions)...
> The sole example I have come across in the one on the EMF/GWT wiki,
> but first I can manage to make it work (see my previous post), second
> it is tied to the Google App Engine.
The sample is, but the underlying ideas for how to communicate between
client and server are independent of that.
> By the way I hope the App Engine is not compulsory if you stay at the
> model level ?
No.
> we do not need the generated editor.
It's just a sample.
> And third where are the EMF-GMF editor classes located, actually I
> have found the editor (org.eclipse.emf.edit.ui.EditorEntryPoint) but
> where is the server side ?
The server side stuff is in org.eclipse.emf.server.ecore.resource.
>
> I am sorry for so much questions, but this is a promising technology
> but I am afraid I do not find to much documentation yet.
No, there isn't much to find. I have little resource to write it and no
focused funding to maintain all that infrastructure, though I try my best.
>
> Thanks.
>
> SeB.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: [GWT] Using Teneo for persistance architecture questions [message #795459 is a reply to message #792958] Fri, 10 February 2012 13:47 Go to previous messageGo to next message
Sébastien  Gandon is currently offline Sébastien GandonFriend
Messages: 184
Registered: July 2009
Senior Member
Hi Ed,

In the example and from what you have answerd above, you are only mentionning the resources are to be exchanged between client and server but we have made some small GWT test app and managed to exchange single model elements (even with references).
Is there any reason why resources are used to exchange model elements aside from compacting exchange messages using a binary resource ?
Thanks.
SeB.

[Updated on: Fri, 10 February 2012 13:47]

Report message to a moderator

Re: [GWT] Using Teneo for persistance architecture questions [message #795614 is a reply to message #795459] Fri, 10 February 2012 17:31 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
SeB,

Yes, we're trying to support GWT serializeable as well (with things like
white list population) so that clients have many options for how to use
this stuff. The use of resources helps support a more REST-oriented
type of approach for communication.


On 10/02/2012 2:47 PM, Sébastien Gandon wrote:
> Hi Ed,
>
> In the example and from what you have answerd above, you are only
> mentionning the resources are to exchanged between client and server
> but we have made some small GWT test app and managed to exchange
> single model elements (even with references).
> Is there any reason why resources are used to exchange model elements
> aside from compacting exchange messages using a binary resource ?
> Thanks.
> SeB.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[GWT] generated Editor fails to compile and execute
Next Topic:[EMF] Edit Domain remove command not working
Goto Forum:
  


Current Time: Sat Apr 27 01:50:06 GMT 2024

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

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

Back to the top