> > > Something I am unclear about is the code that connects the frontend to the > backend. It seems like GWT duplicates some of the intermediary code that > connects the two ends. One in Java that runs on the backend, and another > copy that runs on the frontend in JavaScript. For example, the code that > defines the data structure that is transmitted between the ends must be > available on both ends. This may be where my problem is. I do have > instance variables there. Off the cuff, I'm not sure how to protect that. >
Using instance variables in objects transferred with GWT-RPC is totally thread safe. I would bet its your code that is wrong and not GWT-RPC code, otherwise GWT-RPC would be pretty unusable ;-) You dont have to fear instance variables. Immutable instance variables are thread safe by definition and access to mutable instance variables needs to be synchronized/atomic to be thread safe. -- J. -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
