Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7158823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:07:48+00:00 2026-05-28T13:07:48+00:00

I am new to GWT and am able to work around with GWT RPC

  • 0

I am new to GWT and am able to work around with GWT RPC but have problem in understanding how the control flow takes place internally. How it gets translated to AJAX?

Can we use new() instead of GWT.create(someService.class) to make an RPC call?
Why does Google not just use Async version instead of creating 2 interfaces?

What happens internally when we use

TaskService Async = GWT.create(TaskService.class);

I have read that it chooses the browser specific hashname.js file but am not understanding the complete control flow. Also How is the Callback Object used.

Can someone explain the control flow by pointing out the essentials?

UPDATE : @Thomas Broyer, Everything I understood… Just confirming that in case GWT.create() there is a .rpc file in the client side which helps in the deferred(late/runtime) binding. Is that correct?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T13:07:49+00:00Added an answer on May 28, 2026 at 1:07 pm
    1. GWT.create() will in this case call a GWT generator; it’ll generate a class implementing the Async interface (and that’s why you only have to declare an interface and you never implement it yourself).
      See RPC Plumbing Diagram.
      Using a generator (or selecting a specific implementation, but in the case of GWT-RPC, a generator is used) is called deferred binding.

    2. So, no, you cannot use new.

    3. As to why there are 2 interfaces, this is so that GWT can check that your server-side code (synchronous) is consistent with your client-side code (async). The reason you call GWT.create on the synchronous interface and it returns an implementation of the async one is legacy. I bet they wouldn’t do it that way, were they to re-implement GWT-RPC from scratch.

    4. The generated class will be responsible of serializing the call (method name and arguments) and make an AJAX request (using a RequestBuilder); and then deserialize the response (either of the type declared, or an exception)

    5. Because calls are asynchronous, the callback is used to, well, call your code back when the server responds, after deserialization takes place (so either calling onSuccess with the decoded object, or onFailure with the decoded exception).
      See Getting Used to Asynchronous Calls

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to GWT. I have developed a GWT application in version-1.6.4 and
I am new new to GWT. I have designed the Gui using GWT designer.
I have produced a new Maven Project from gae-archetype-gwt from within IntelliJ, and everything
I have used closures concept in javascript many times. I am new to GWT
I have experience in GWT but know nothing about JSNI or Javascript . i
I'm writing a messaging application in GWT, and have a fairly difficult problem to
I'm fairly new to GWT and have been trying to piece together things to
Hi Im new to GWT and Google App Engine. Im trying to layout which
I am new to GWT. I am writing a simple GWT program where I
I am new to GWT and am going through the docs, examples, demos etc.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.