This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design 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: 17271
    
    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
 
Have you checked out Aspose?
 
subject: Is Servlet SingleThread Model or Multithread Model by default?
 
It's not a secret anymore!