• Post Reply Bookmark Topic Watch Topic
  • New Topic

SingleThreadModel in J2EE 1.4  RSS feed

 
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everybody,
In J2EE 1.4 SingleThreadModel is deprecated, so if i want to make my Servlet instance thread safe what kind of facility is provided?


with best regards
Shrinivas
 
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its only depracated, it will still work. The alternative is to rewrite your code to be threadsafe. Basically try to avoid the use of instance member variables. And if there is a good reason to use them, synchronize access to them.
[ June 24, 2005: Message edited by: Sharad Agarwal ]
 
Willie Smits can speak 40 languages. This tiny ad can speak only one:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!