I was reading about this EntityProxy feature in GWT 2.1+ and was wondering if you can use this proxy mechanism to avoid having to create DTOs and combine with regular RPC calls?
I have a command pattern which uses RPC mechanism, but as everybody knows, most of the time you have to round trip complex objects. But you usually end up coding a DTO which is usually a copy of your server side persistent object.
So can EntityProxy help you in this matter?
Thanks
EntityProxy is part of the RequestFactory system and cannot be used with GWT-RPC. The purpose of
EntityProxy(andValueProxy) is to avoid the need to code an entire DTO and all of the glue code that entails. TheRequestobjects used by RequestFactory roughly approximate a command pattern, since multipleRequestobjects can be queued within a singleRequestContextand evaluated with a single round-trip to the server.