• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

isThreadSafe="false"

 
Deepak Jain
Ranch Hand
Posts: 637
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Strange
With <%@ page isThreadSafe="false" %> i was expecting the JSP Servlet code not to implement SingleThreadedModel
and with <%@ page isThreadSafe="true" %>, I was expecting the JSP servlet code to implement SingleThreadedModel
But it happened excatly reverse and the behavior also was reverse , it was invokgin jspInit() & jspDestrouy() with
each request , indicating the servlet is instanted for each request, completely confused...???

With false:
public final class hobbyFriends_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent,
SingleThreadModel {
 
Sarat Koduri
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ya deepak you are right, just to add a point here..

when we say we are telling the container that i know about my program and by the way it deals carefully with threads so you do not worryy, which is the default nature ofcourse,

and when we say , we are telling the container that i am not quite sure about the threads safety so you please do the need full which intrun leads to STM.

 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good sarat
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic