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

  • Home
  • SEARCH
  • 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 7892227
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:49:02+00:00 2026-06-03T06:49:02+00:00

Javadoc for RequestContext#fire() says only: Send the accumulated changes and method invocations associated with

  • 0

Javadoc for RequestContext#fire() says only:

Send the accumulated changes and method invocations associated with the RequestContext.

GWT Moving Parts wiki entry under Flow section says only:

  • All accumulated operations will be applied to the domain objects by traversing properties of the proxies.
  • All method invocations in the payload are executed.

But will these methods be executed on the server side in the same order they were “executed” (accumulated) on ReqestContext instance on client side?

For my situation, if I execute on client side:

context.persist().using(proxy)
context.find(proxy.stableId().to(updatingReceiver))
context.fire()

Then may I be sure that on server side find() will be invoked after persist() so my updatingReceiver will get proxy of updated (persist()‘ed) entity as an argument?

EDIT:

Going further, may I be sure that back on client after response Recievers will be invoked in exactly the same order in which their corresponding methods were accumulated?

Finally, is there a way to add some action that will be invoked at the end of response handling, after all Receivers’ actions?

I thought something like this may work:

requestContext.fire(new Receiver<Void>() {
    @Override
    public void onSuccess(Void response) {
        //Things to do after all receivers
    });

And it really seems to work as I expected but because all that Javadoc is telling me about RequestContext.fire(Receiver) method is:

For receiving errors or validation failures only.

I’m not 100% sure whether my assumption is 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-06-03T06:49:04+00:00Added an answer on June 3, 2026 at 6:49 am

    Yes, order of method invocations is preserved, both on the server-side and then back on the client side when calling Recievers.

    The queue is a simple ArrayList in which invocation objects are appended. On the server-side, they’re processed in the order they’re received.

    The Request-Context-level Receiver is always called after the ones for invocations. Its onSuccess is always called, whatever the result of the invocations (even if they all fail), to signal that the batch of invocations was processed successfully. Its onFailure is only called in case of a general failure, i.e. a network error, or an error when (de)serializing requests/responses on the server-side.
    See http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java?r=10835#345

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

Sidebar

Related Questions

In GWT javadoc, we are advised If you only need a simple label (text,
In the JavaDoc of ActivityUnitTestCase it says: Do not call from your setUp() method.
I see from the javadoc that the @SuppressWarnings annotation applies to TYPE,FIELD,METHOD,PARAMETER,CONSTRUCTOR,LOCAL_VARIABLE targets. Why
I was reading the JavaDoc for Threadlocal here https://docs.oracle.com/javase/1.5.0/docs/api/java/lang/ThreadLocal.html and it says ThreadLocal instances
This FileInputStream.available() javadoc says: Returns an estimate of the number of remaining bytes that
I know how to generate simple javadoc for a method, but I thought it
The javadoc says: Please note that this class is designed to provide convenience rather
The JavaDoc for EntityProxy.stableId() says: An id returned by a proxy newly created by
The JavaDoc says The null byte '\u0000' is encoded in 2-byte format rather than
The Javadoc for AsynchronousByteChannel.read() says the operation takes place asynchronously, but what happens when

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.