gwt-rpc

Communication client-server-client

我是研究僧i 提交于 2020-02-05 13:50:18
问题 I have a question about the Communication between a client and a server. I would like to create a GWT application that can do the following: The client A fires an event to the server and the server in his turn fire an event to the client B. Here the client B has to be able to listen to the event all the time. I wanted to send some event with few data in real time to a connected client B. is that possible? and if yes how can I do that? Thanks 回答1: Here the client B has to be able to listen to

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

徘徊边缘 提交于 2020-01-21 03:12:08
问题 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

using GWT RPC mechanism with my customized Servlet

元气小坏坏 提交于 2020-01-14 05:10:10
问题 I currently have a GWT application which uses the RequestBuilde to send messages to a servlet I have (using POST and GET ), and my servlet (in doPost and doGet ) "pauses" the request (this is done by using Servlets 3.0 spec) and adds it to a queue. Additionally I have a Daemon thread which runs in the background and "plays" the request when there is new data. This works great for me apart from the fact that I'm just sending strings for now and I'd like to utilize the RPC mechanism to send

Android to Appengine RPC Nullponter on server

房东的猫 提交于 2020-01-13 06:48:46
问题 I have a Appengine connected Andorid project, to enable RPC calls between the server and the Android device. When I'm doing calls on the GWT client everything works perfectly, but when I'm doing calls from the Android app the server throws this nullpointer exception. I'm making RPC calls with a Requestfactory. GAE version 1.5.2 [ERROR] Unexpected error java.lang.NullPointerException at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768) at com.google.web.bindery

GWT-RPC vs HTTP Call - which is better?

痴心易碎 提交于 2020-01-10 14:32:12
问题 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

SerializationException: type not included in serializable type set

限于喜欢 提交于 2020-01-10 03:31:07
问题 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? 回答1: GWT keeps track of a set of types which can be serialized and sent to the client. your.class.Type apparently was not on

Save gwt entities to google application engine datastore with jdo, using rpc

孤人 提交于 2020-01-07 04:09:10
问题 Hello iam new to GWT framework. I want to persist my domain objects/entities to google application engine datastore using rpc. A simple implementation to test if i can make multiple rpc calls ( greetServer() , saveStudent() ) Student import javax.jdo.annotations.Extension; import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; import javax.jdo.annotations.PrimaryKey; import com.google.gwt.user.client.rpc

GWT retrieve list from datastore via serviceimpl

谁都会走 提交于 2020-01-07 01:31:59
问题 Hi I'm trying to retrieve a linkedhashset from the Google datastore but nothing seems to happen. I want to display the results in a Grid using GWT on a page. I have put system.out.println() in all the classes to see where I go wrong but it only shows one and I don't recieve any errors. I use 6 classes 2 in the server package(ContactDAOJdo/ContactServiceImpl) and 4 in the client package(ContactService/ContactServiceAsync/ContactListDelegate/ContactListGui). I hope someone can explain why this

gwt-rpc deserialization rpc string

拥有回忆 提交于 2020-01-05 09:33:36
问题 I have gwt-rpc response string, for example: //OK[1,["19.04.2011 10:49"],0,5] I need to deserialize it. In the best way I want to do it with php, but as I know there are no ready solutions. So, is gwt-rpc serialization algorithm is open source and I can try implement it in php? Or may be I can to develope some java application ( as proxy ) to deserialize it and send to php? 来源: https://stackoverflow.com/questions/5712831/gwt-rpc-deserialization-rpc-string