GWT Services are nothing but HttpServlets. And single instance of servlet can serve multiple requests, which can be from different users.
To store attributes per user, use HttpSession instead of variables in GWT Service. HttpSession can be retrieved from GWT service by calling getThreadLocalRequest().getSession(). Prakash M. On Jun 24, 12:58 am, Ralf B <[email protected]> wrote: > I have a service that instantiates and keeps state (variables in the > back end that is controlled by the service) until the user logs out. > What happens exactly when two users access my GWT service; will there > be one service instance for each user or will one be shared between > them? I try to figure out if my service is actually multi-user or > not... > > Ralf -- 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.
