• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Are HttpRequest objects thread safe?

 
Justin Russo
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for being impatient here. I already had a question on this and had replied on one of the existing threads but thought that it might get lost!

so adding a new thread.. once again apologies for the repetition

Question:: why is the container synchronizing the Httprequest. This is for servlet generated by tomcat for a JSP.

snippet below copied from tomcat generated servlet

code:


[ June 16, 2008: Message edited by: Justin Russo ]
[ June 16, 2008: Message edited by: Justin Russo ]
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess you are using jsp:useBean. According to the spec, the inspection is done synchronized per scope namespace to avoid non-deterministic behavior. (JSP.5.1 <jsp:useBean> .
 
Justin Russo
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks but what might be that non-deterministic behavior for a particular request?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic