I seem to be facing a similar problem. The class i have created at the server end ( extends RemoteServiceServlet and implements the interface at the client end ) does have state and methods which depend on each other. IS A NEW OBJECT NOT INSTANTIATED FROM THIS CLASS EVERY TIME A NEW USER CALLS IT ? This does not seem to be happening because when i test the application in parallel from two different browsers, its mixing up the results. Please help me with a solution or let me know if anyone needs more details.
Thanks, Parmeet On Jul 31, 1:42 am, Isaac Truett <[email protected]> wrote: > > Say if users using different services concurrently and yet I have > > grouped the services together, will my web application crash (it can't > > tell which service for whom) ? > > Are you saying that your servlets are stateful? That would indeed be a > problem. You shouldn't have any member variables in your servlet > classes that hold data specific to a single user or request. Your > servlets should be stateless to allow forconcurrentaccess. > > On Thu, Jul 30, 2009 at 1:45 AM, style.x7<[email protected]> wrote: > > > Hi fellow members, > > > I have been following examples found on the web to build my web > > application with RPC mechanism. > > > My web application has quite a few services. By right, each service > > should have its own class files on both client and server side. But > > this way will result in a lot of class files, quite troublesome. > > > So I'm grouping all the services into one "union" set of class files. > > It works for single-user usage, soon I have to test on multi-user > > environment and wonder if problem can arise. > > > Say if users using different services concurrently and yet I have > > grouped the services together, will my web application crash (it can't > > tell which service for whom) ? Or I'm worrying too much as there will > > be individual instance of the class files for each user? > > > Just want to get this right before I continue developing~ Thanks in > > advance :) > > > Regards, > > style.x7 > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
