Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General 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