aspose file tools*
The moose likes Servlets and the fly likes Server thread question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Server thread question" Watch "Server thread question" New topic
Author

Server thread question

Vasantha Prabha
Ranch Hand

Joined: Oct 02, 2003
Posts: 108
Hai, when a servlet gets loaded into the server, the server creates an instance of the servlet.
My Question is,
Will the server provide one thread for each client or it initiates a thread for each client's single request?
regards
Sangeetha


Regards,Vasantha<p>Great minds discuss ideas. Average minds discuss events. Small minds discuss people.
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
A server uses one thread for each request, regardless of which client it comes from or which servlet or JSP it goes to.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Pallavi Sikdar
Greenhorn

Joined: Jan 16, 2004
Posts: 12
What the container does internally differs from one vendor's implementation to other , be it servlet, jsps or EJB's. For eg. in EJB's the container may or may not create instance pools for say entity beans(though most of them do). Ultimately all is transparent to the user.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Server thread question