Thanks Alex, for the info. I am pretty clueless as to how app servers actually work. Guess I need to do some homework. ;=)
-Danny On Jan 13, 7:31 am, Alex <[email protected]> wrote: > The app server probably has a thread pool and is reusing threads from > the pool rather than creating new ones for each new request. Each call > gets executed in a separate thread, and a thread only runs one request > at once, but a single thread serves multiple requests (serially) > between the time it is created and the time it is destroyed. > > On Jan 12, 4:14 pm, drunningw <[email protected]> wrote: > > > > > Hello all, > > > My understanding was that each call to a method in GWT service class > > that implements RemoteService would run in a new thread on the > > server. However , we have logged using, System.out.println > > (Thread.currentThread()), the threads running on the server-side code > > and get something that looks like: > > > Thread[http-8888-Processor2,5,main] > > Thread[http-8888-Processor2,5,main] > > Thread[http-8888-Processor3,5,main] > > Thread[http-8888-Processor3,5,main] > > Thread[http-8888-Processor3,5,main] > > Thread[http-8888-Processor3,5,main] > > Thread[http-8888-Processor3,5,main] > > Thread[http-8888-Processor3,5,main] > > Thread[http-8888-Processor3,5,main] > > Thread[http-8888-Processor3,5,main] > > Thread[http-8888-Processor3,5,main] > > Thread[http-8888-Processor3,5,main] > > Thread[http-8888-Processor3,5,main] > > Thread[http-8888-Processor3,5,main] > > Thread[http-8888-Processor2,5,main] > > Thread[http-8888-Processor2,5,main] > > Thread[http-8888-Processor3,5,main] > > Thread[http-8888-Processor3,5,main] > > Thread[http-8888-Processor3,5,main] > > Thread[http-8888-Processor2,5,main] > > > It looks like only 2 threads are being used in the server code and > > there is some random slection happening as to which one is active when > > the service call occurs. > > > Am I mistaken? Namely, erver calls do not run in a separate thread? > > > Any help would be appreciated. > > > -Danny
-- 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.
