Wednesday, July 13, 2016

Re: GWT RPC in GWT 3.0+

just a side note on this

Although GWT-RPC is the easy low threshold for someone coming from the java world SOAP, RMI (like me) two things that didn't fly well were:

1) GWT-RPC favors overspecifying the collection type. So it is better to say ArrayList > List > Collection in your interfaces.

2) It was difficult to share server side code without including GWT specific jars. So I had to create proxies for my SOAP services which was problematic. With Resty-GWT at least my server code can have multiple types of clients js, java, GWT etc.

   Vassilis

On Wed, Jul 13, 2016 at 7:23 PM, Thomas Broyer <t.broyer@gmail.com> wrote:


On Wednesday, July 13, 2016 at 5:53:20 PM UTC+2, Paul Robinson wrote:


On 13 Jul 2016 9:17 a.m., "Kay Pac" <kmjs2012@fastmail.fm> wrote:
>
> Will the gwt serialization mechanism used in GWT-RPC remain? GWT object serialization has been plugged into the atmosphere (realtime communication/websockets) GWT extension. It would be useful to know if we should migrate away from the GWT serialization and towards JSON.

It's the serialisation that's the problem, so it will be gone in 3.0. JSON is a good choice. (I'm moving that way)


The actual problem is not serialization per se, it is that the RPC generator scans the whole classpath for subclasses of transferred classes to generate their specific ser/deser code (taking into account their CustomFieldSerializer if one exists).
RPC (thus probably Atmosphere) could be made to work (as annotation processors) if they use another mechanism to determine what can be transferred (e.g. annotations similar to RequestFactory's @ExtraTypes).
I believe Daniel Kurka said something along those lines a year ago when first talking about those changes. The logical next question is: is there anyone willing to make those changes and continue to maintain GWT-RPC? The answer seemed to be (have been?) "at least that won't be Google", and this is why people start to "panic". That does not mean RPC will be gone (that doesn't mean it'll still be there either).
But let's concentrate on 2.8 for now.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.



--
Vassilis Virvilis

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment