gwt-rpc

Invoke a GWT RPC service from Java directly

Is there an easy way to invoke a GWT RPC service endpoint directly from Java code? I mean real Java code, not Java code compiled down into javascript. I ask because we want to run performance benchmarks/stress tests against a GWT RPC interface. I would like to write the test harness in Java and run it in a JVM (as opposed to javascrip...

GWT and java.io.Serializable

Hello, In my GWT app I have the following model class: import com.google.gwt.user.client.rpc.IsSerializable; public class TestEntity implements IsSerializable { public String testString; } This class implements the GWT custom IsSerializable marker interface - which I really don't like, because I use my model classes not only for...

using GWT RPC mechanism with my customized Servlet

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...

Is there any tool to quickly create RPC classes for GWT?

Is there any tool to quickly create RPC classes for GWT that extends RemoteService, the Async version and the RemoteServiceServlet derived class. The only input should be some functions list and all the wrapper code should be generated. I hope you got my question. ...

Memory usage of a GWT application

Hi, I'm currently working on a GWT application as a proof of technology for future projects. I like the way of building my AJAX code in Java instead of JavaScript. But I seem to be running into a memory problem when I repeat calls to an RPC service. The browser memory usage keeps growing and growing. When searching Google I keep read...

Troubleshooting nonfunctional RPC calls when using GWT compiler?

Hi! We are developing with GWT 1.7.0 with gwt-ext. We build with maven 2.1. Everything works fine for my collegues but my compile is bad. I mean everything looks fine when ran mvn package, but it's not working. I tried to debug I found that the RPC calls did not reach the server. I tried it in hosted mode but it is not working either. I...

Number of GWT RemoteServiceServlets

When designing an application with a large number of remote services, is it better to have one RemoteServiceServlet end point with many methods or a large number of RemoteServiceServlet endpoints with fewer methods? ...

BigDecimal serialization in GWT

What is your preferred approach to serializing BigDecimal in GWT? Are there any clever workarounds, or do you simply use Double or String? Of all of the GWT pains this is so far the biggest; I'd hate to create two models, one for server and one for GWT, and transform data from one to the other. On the other hand, while I don't care muc...

GWT RPC or Request Builder using Javascript Overlay?

GWT RPC is a mechanism provided by gwt to communicate between client and server. Also there's a Request Builder, through which you can connect to the server. Which mechanism would you recommend for a gwt based app, and please state the reasons to do so as well.. ...

GWT classes: an annotation to prevent serialization of a field?

In GWT 1.7 I have a class used to construct object on the server side which are then used on the client (browser) side. On the client side I want to cache a service (in this case NumberFormat). This will be initialized lazily in a client-only method, and stored as a field object. The problem is the Java (1.6) build tools interpret this...

GWT: Timer causes runtime warning.

Hello, I'm working on my first GWT-based Java project for a school assignment. It's a chat application and the client polls the server for new events, while the server keeps an timer for each user to detect inactivity. The following problem occurs at runtime: Dec 8, 2009 7:41:17 PM com.google.apphosting.utils.jetty.JettyLogger warn WA...

ezproxy + intelliconnect.wkasiapacific.com

Hi, I am having problem using EZProxy to access contents in intelliconnect.wkasiapacific.com intelliconnect.wkasiapacific.com uses GWT (which uses .rpc extension to facilitate ajax call to server) Is there anyway I can verify that this is indeed the problem (Ezproxy blocks *.rpc) and find a way to let Ezproxy allow *.rpc call ? Many ...

GWT - Grails rpc with transfer object failing

GWT version: 2.0.0 Grail version: 1.1.2 Grails - GWT plugin version: grails-gwt-0.5-SNAPSHOT, used after 0.4.1 I'm calling a method from the gwt side passing a transfer object, which implements IsSerializable and resides in the client package, so to be compiled into js, also all class properties are of primitive types. Follows a brief s...

Good examples of sites built with PHP on server side and GWT on client side?

All the time, I use PHP on server side to generate HTML/XHTML directly or via Smarty/PHPTAL or any other templating engine. I do believe most of developers follow the same path most of the time. Now I'm thinking of delegating GUI & client-side to GWT and using to send RPCXML / RPCJSON / POST / GET to server side which run PHP. I'm looki...

GWT - java.security.AccessControlException: access denied for serializer in ubuntu/tomca6 deployment

Hi all, I am trying to deploy my gwt app to tomcat6 under ubuntu 9.10 and get the (i suppose known to many of you) "java.security.AccessControlException: access denied" error (Full exception can be found at the end). I have searched the net in general and found that the Java default security permissions are preventing the serializer...

gwt-RPC problem! what is the best practice on using gwt-RPC?

Dear all, I want draw a chart based on the date retrieve from the database by using RPC. But everytime I fail to get the result. My rpc function is working. I think is the sequence of the process. below is my class: public class TrafficPattern_1 extends GChart { TrafficPattern_1() { final DBServiceAsync dbService...

How can I keep GWT from trying to include every serializable class when I use ArrayList

I have an RPC service in GWT that needs to return a List. The List can be filled with various types of objects, all of which are serializable and all of are referenced elsewhere in my service so they should be available to GWT RPC. However, unless I put on a generic type parameter (e.g. ArrayList<String>), GWT gives me the warning: R...

GWT, with multiple clients

Hi, I am designing a web application using GWT currently, which is also the first time i am using GWT. I just have a general question about how (or can) GWT handles communications between multilpe clients. My application needs user to login and has personalized pages for different users, GWT is well able to do all of these. The only pr...

Chat client with GWT

What would be the best way to create a JS chat client with GWT? The bit that I'm having trouble with is the persistence and transfer of the messages. Should I store the messages in a DB and check the db for new messages? Is there a much better way to do this? ...

Preventing browser loading indicator with Chrome + GWT-rpc.

Hello. I'm writing a ajax chatting webapp, just to test working with GWT. To simulate server side push of chat messages from the server to the browser, I have a XHR request running behind. It all works fine - except on Chrome, the browser is displaying a loading icon (a spinner) because of the XHR request on background. Is there any w...