O'Reilly logo

Essential GWT: Building for the Web with Google Web Toolkit 2 by Federico Kereki

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

6. Communicating with Your Server

Remote Procedure Calls (RPC) can bring client- and server-side code together and therefore are one of GWT’s more potent tools. In this chapter we’ll analyze how RPC works and show several patterns of its usage, including live suggestions, client-side data prevalidation, and connecting to Enterprise Java Beans (EJB). We shall even be providing a more complicated example of MVP, with an RPC-enabled composite widget.

Introduction to RPC

RPC enables GWT programmers to work almost as if the client- and server-side code resided at the same machine, making the connection practically invisible. There are some differences, however. For example, server-side code can use any class and package in the Java repertory, but ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required