O'Reilly logo

ExtGWT Rich Internet Application Cookbook by Odili Charles Opute

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

GWT-RPC development steps

The following steps describe how to implement a service using GWT RPC:

  • Define the main service interface
    • Implement the RemoteService interface
    • Define the regular methods without explicit HTTP
    • Use the @RemoteServiceRelativePath to point at servlet
  • Define the callback (Async) version of the service interface
    • If the main interface is FooService, define FooServiceAsync
  • Make the service servlet
    • Extend the RemoteServiceServlet, implement the service interface
    • Supply the URL-pattern in web.xml that matches the relative path
  • Create and use the service proxy
    • Call GWT.create(FooService.class)
    • Define the client-side callback objects with the onSuccess and onFailure methods implemented

A service implementation must extend RemoteServiceServlet ...

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