aspose file tools*
The moose likes Servlets and the fly likes Is Servlet SingleThread Model or Multithread Model by default? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Is Servlet SingleThread Model or Multithread Model by default?" Watch "Is Servlet SingleThread Model or Multithread Model by default?" New topic
Author

Is Servlet SingleThread Model or Multithread Model by default?

Debalina Bera
Greenhorn

Joined: Jun 08, 2003
Posts: 5
Can anyone describe me whether servlet is singlethread model or multithread model by default?
Gayathri Prasad
Ranch Hand

Joined: Jun 25, 2003
Posts: 116
Hi,
Default is Multi Thread model and Single Thread model is deprecated now.

Cheers,
Gaya3
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Yes, in order to get the SingleThreadedModel, you had to implement the interface and use the distributable tag in the web.xml
The other way is by default.
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is Servlet SingleThread Model or Multithread Model by default?
 
Similar Threads
singlethreadmodel
Multi thread servlets and the Server applications they call.
Thread Safe Servlet
singlethreadmodel
SingleThread Model