This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Single Thread Model

 
amit sanghai
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you implement Single Thread Model in servlets?
 
Joe Gilvary
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not difficult that.
Put
implements SingleThreadModel
at the start of the class declaration.
Take a look at the resources I mentioned in
response to your question about sessions.
HTH,
Joe
 
senthil narayan
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes you can implement single thread model interface by implementing it in servlet class.but it affects performance very much so please see it whether it is actually needed.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic