Is GWT's RPC different from AJAX?

2019-03-19 14:29发布

问题:

How is GWT (Google Web Toolkit)'s RPC (Remote Procedure Call)'s for Asynchronous operations from browser/javascript to server is DIFFERENT or SIMILAR when compared to the AJAX calls ?

If they are different, could someone help me understand how they are different ?

I also heard that this RPC implementation does not works with all Server containers. For example, the GWT project did not work in Apache Tomcat.

Moreover, is this RPC a an custom implementation of Google , or is it a standard implementation ?

回答1:

1) GWT RPC uses AJAX to allow Data transfer for GWT applications.

2) GWT RPC abstracts out lot of information and wraps ajax to allow you to code in JAVA without worrying about different browsers.

3) It WORKS in tomcat, jetty and in every server container. In some cases people misconfigure the paths ( dev mode vs production mode causes confusion in image paths/ css)

4) RPC is indeed a CUSTOM implementation from Google.