Ok, I have just realized this issue.
Let say you use GWT + Java + Tomcat to build your web App.
The Tomcat receives 2 Action calls from 2 clients at the same time.
The 1st call (will call a series of methods & return a boolean) is received
by the server before the 2nd.
Call1:
String passwordProvidedByUser=action.getPasswordFromClient();String
passwordFromDB=data.getPasswordFromDB();if
(passwordFromDB.equals(passwordProvidedByUser)){
boolean updated=data.updateInfo();}
Call 2:
String newPassword=action.getPasswordFromClient();boolean
changePwd=data.changePwd(newPassword);
So, if Call1 finished String passwordFromDB=data.getPasswordFromDB(); but
has not run the boolean updated=data.updateInfo(); while call 2 already ran
boolean
changePwd=data.changePwd(newPassword); then call 1 boolean
updated=data.updateInfo(); with old password?
My question is that will GWT finish all the actions of 1st call & return
the result to the 1st call before it starts to process the 2nd?
Or It just starts to process the 2nd while it is still processing the 1st
(ie the server hasn't return a result to the 1st, but already started to
process the 2nd)?
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.