Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is Servlet SingleThread Model or Multithread Model by default?

 
Debalina Bera
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone describe me whether servlet is singlethread model or multithread model by default?
 
Gayathri Prasad
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Default is Multi Thread model and Single Thread model is deprecated now.

Cheers,
Gaya3
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic