I'm facing a little problem, in which I can't find a way on how to make an object to be transfered on both RequestFactory and GWT-RPC servlets.
The problem is as below:
The gwt client receives object A from the database using RequestFactory, edit it using the Editor framework and persists the changes back to the database.
Sometime, in addition to this workflow, the gwt client has to send this object A to external REST server.
To do so, I'm planning about making an gwt-rpc call and on the server side make the call to the REST server with the received object A.
The server side has connection parameters to the REST server and knows how to do the serialization of the object.
The problem is that I cannot transfer Object A (which is an EntityProxy) on the GWT RPC servlet.
Does that mean that in addition to the DataObject+EntityProxy I need to create another shared object of object A (with exactly the same fields and types)?, create this new object on the client side, and send it over the GWT RPC?
Is there a cleaner way on how to have only one object that can be used on both servlets?
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment