Win a copy of Functional Reactive Programming this week in the Other Languages 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