This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Single Thread Model

 
Pranav Jaidka
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all
Is there a way to implement the Single thread model in JSP .At present im haveing problems maintaining different states of variables in the Servlet
This is a critical issue in the way our project should work .
Thanks
pranav
 
Vladan Radovanovic
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The way to do that is
<%@ page isThreadSafe="false" %> // by defauld it is true
That indicates that your code is not thread safe and the resulting servlet will implement SingleThreadModel.
Vladan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic