Chapter 7. Communicating with GWT-RPC
This chapter covers
At this point in the book you’ve learned the basics of creating a GWT application, allowing you to do some great stuff in the browser. The next step will be learning to communicate with the outside world. GWT offers several tools for this, including HTML forms (chapter 12), RequestBuilder (chapter 12), RequestFactory (chapter 8), and GWT-RPC. HTML forms are exactly as the name implies, and Request-Builder is your typical Ajax solution. But the next two, RequestFactory and GWT-RPC, are special in the sense that they allow you to send Java objects between the client and server, as opposed to JSON, XML, or whatever other program you can dream up.
In this chapter we discuss GWT-RPC, or GWT Remote Procedure Call, which allows you to call Java methods on the server, passing and receiving back Java objects and primitives. You’ll find this to be a convenient solution for general-purpose RPC calls when you’re already running Java on the server.