If we assume that the same servlet responds to all the requests, why not maintain the intermediate data with a suitable id mechanism like clientId+ReqestId in the servlet? A servlet transcends sessions.
J.Ganesan www.DataStoreGwt.com On Sep 10, 12:07 am, Nestor <[email protected]> wrote: > Could you clarify that? > > My understanding is that once I send a response back to the client, > the connection is closed. > > How do I then get a response for the next step? If I make another RPC > request, is there a guarantee that I'll connect to the same session > that executed the previous step? > > Let me try to illustrate what I'm going for: > > Client submits RPC request for Step 1 > > Server receives request and executes Step 1 > Once Step 1 is complete, server sends response with progress update > > Client receives response and displays progress update to user > Client sends RPC request for Step 2 > > Server receives request > Server takes data generated from Step 1 (preserved how?) > Server executes Step 2 and sends response with progress update > > Client receives response and displays progress update > Client sends RPC request for Step 3 > > ...and so on. > > My main concern is how to preserve the interim data from one RPC call > to the next. > > On Sep 6, 3:55 pm, mohit ranjan <[email protected]> wrote: > > > > > > > > > Make an async RPC call and update UI on OnSuccess/OnFailure() > > > Mohit > > > On Wed, Sep 7, 2011 at 1:13 AM, Nestor <[email protected]> wrote: > > > I'm trying to find out how to implement the following functionality. > > > Any help would be appreciated. > > > > The client sends a RPC request to the server for a set of data. The > > > server has to query the data, then perform some additional processinf > > > (e.g., filter, sort) before sending it back to the client. While this > > > processing is going on, a progess bar is displayed to the user, > > > indicating what step is being performed ("Retrieving", "Filtering", > > > etc.) > > > > I've been looking at Server Push as a potential solution, but I'm not > > > sure how to implement it for this situation. I suppose the server > > > could send status messages indicating completion of each step in the > > > process before sending the final result set. Am I on the right track? > > > > Thank you. > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "Google Web Toolkit" group. > > > To post to this group, send email to [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]. > > > For more options, visit this group at > > >http://groups.google.com/group/google-web-toolkit?hl=en.-Hide quoted text - > > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
