This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Are HttpRequest objects thread safe?

 
Justin Russo
Ranch Hand
Posts: 77
  • 0
  • 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
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks but what might be that non-deterministic behavior for a particular request?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic