Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SingleThreadModel in J2EE 1.4

 
Shrinivas Mujumdar
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
 
Sharad Agarwal
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic