gwt-rpc

GWT how can I reduce the size of code serializers for RPC calls

二次信任 提交于 2019-11-30 13:57:37
I found that the more than 60% of the javaScript code generated by GWT on my application is for RPC serializers. Also I found that serializers are not shared between service interfaces, I mean if I have for example AccountDTO type referenced on 2 rpc service interfaces, I will get 2 serializer classes instead of 1 for the same type. In Order to reduce the size of the compiled code I was thinking that maybe I could use Deferred Binding in order to do a replacement of all the services interfaces I have for one big interface. If that could be possible, maybe then GWTCompiler will produce only one

Should I build a REST backend for GWT application

左心房为你撑大大i 提交于 2019-11-30 10:38:25
问题 I am planning a new application and have been experimenting with GWT as a possible frontend. The design question I am facing is this. Should I use Option A: GWT-RPC and build the app quickly Option B: Build a REST backend using Spring MVC 3.0 with all the great @Controller, @Service, @Repository annotations and build a client side library to talk to the backend using the GWT overlay features and the GWT Request builder? I am interested in all the pros and cons and people experiences with this

Experiences with integrating spring 3 mvc with GWT?

陌路散爱 提交于 2019-11-30 10:35:16
问题 Given: Spring 3.0 mvc has excellent REST support with one of the representation being JSON. GWT simplifies development as UI is developed in java. But by default it uses RPC for client server interaction. But there is an option to use JSON. Questions: Can you share experiences with using Spring 3.0 mvc with GWT ? What is the best approach to integrate these two frameworks? Is the default GWT's MVP architecture only for client side and does it work well with JSON? Thanks 回答1: Can you share

Sending a date and timezone from GAE server to GWT client

拟墨画扇 提交于 2019-11-30 09:44:11
OK folks, I have been going around this problem for about 2 weeks now trying everything I can think of and looking at tons of answers on here that feel like they are going to answer it, but I just cant work out how I am meant to do what I am trying to do and it is driving me absolutely NUTS! No one seems to have an answer anywhere, there are half answers all over the place, but none seem to actually do what I need it to do, surely SOMEONE has solved this problem before! Please excuse the REALLY long question, but its important that the question is asked right, so that the answers actually

GWT-RPC vs HTTP Call - which is better?

孤人 提交于 2019-11-30 09:39:58
I am evaluating if there is a performance variation between calls made using GWT-RPC and HTTP Call . My appln services are hosted as Java servlets and I am currently using HTTPProxy connections to fetch data from them. I am looking to convert them to GWT-RPC calls if that brings in performance improvement. I would like to know about pros/cons of each... Also any suggestions on tools to measure performance of Async calls... [ A good article on various Server communication strategies which can be employed with GWT.] I wrote that article mentioned in the question (thanks for the link!). As always

gwt serialization policy hosted mode out of sync

℡╲_俬逩灬. 提交于 2019-11-30 04:03:41
问题 When running my GWT application (gwt 2.0.4) in hosted mode, calling RPC methods running on remote Tomcat, I get GWT serialization exception: INFO: GwtRpcEventSrvc: ERROR: The serialization policy file '/84EC7BA65AF8175BAA99B47877FDE163.gwt.rpc' was not found; did you forget to include it in this deployment? SEVERE: GwtRpcEventSrvc: WARNING: Failed to get the SerializationPolicy '84EC7BA65AF8175BAA99B47877FDE163' for module 'http://host:19980/MYAPP/'; a legacy, 1.3.3 compatible, serialization

Sending persisted JDO instances over GWT-RPC

孤者浪人 提交于 2019-11-29 23:06:50
I've just started learning Google Web Toolkit and finished writing the Stock Watcher tutorial app. Is my thinking correct that if one wants to persist a business object (like a Stock) using JDO and send it back and forth to/from the client over RPC then one has to create two separate classes for that object : One with the JDO annotations for persisting it on the server and another which is serialisable and used over RPC? I notice the Stock Watcher has separate classes and I can theorise why: Otherwise the gwt compiler would try to generate javascript for everything the persisted class

Experiences with integrating spring 3 mvc with GWT?

ぐ巨炮叔叔 提交于 2019-11-29 20:52:34
Given: Spring 3.0 mvc has excellent REST support with one of the representation being JSON. GWT simplifies development as UI is developed in java. But by default it uses RPC for client server interaction. But there is an option to use JSON. Questions: Can you share experiences with using Spring 3.0 mvc with GWT ? What is the best approach to integrate these two frameworks? Is the default GWT's MVP architecture only for client side and does it work well with JSON? Thanks Can you share experiences with using Spring 3.0 mvc with GWT ? Yes. We've successfully built a whole large application around

How to handle RPCs in client-server PlayN game?

我与影子孤独终老i 提交于 2019-11-29 09:09:40
问题 I'd like to use PlayN to create a client/server card game, e.g. Hearts. While I'm mostly focusing on the HTML5 output, I'd ideally like to be output-platform-agnostic in case I decide to make an Android client in the future. How should I approach the RPC mechanism? These are the options I've thought of: Use JSON for RPCs with get()/post() methods - write a servlet that accepts/returns JSON, and make all versions of client code use that. This seems doable, but I'm concerned about JSON's

SerializationException: type not included in serializable type set

醉酒当歌 提交于 2019-11-29 09:04:22
In my Google Web Toolkit project, I got the following error: com.google.gwt.user.client.rpc.SerializationException: Type ‘your.class.Type’ was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized. What are the possible causes of this error? GWT keeps track of a set of types which can be serialized and sent to the client. your.class.Type apparently was not on this list. Lists like this are stored in .gwt.rpc files. These lists are generated, so editing these lists is