Web tier: servlets, JSP, Web frameworks: what does SingleThreadModel has deprecated mean?
the SingleThreadModel has deprecated in jdk1.4.what does this mean.
- Posted by: zhang zhang
- Posted on: July 07 2004 17:59 EDT
let's say I have some jsp,servlet are not thread safe,if I mark it as SingleThreadModel,it will not working in jdk1.4?
the SingleThreadModel has deprecated in jdk1.4.what does this mean.let's say I have some jsp,servlet are not thread safe,if I mark it as SingleThreadModel,it will not working in jdk1.4?Not exactly, deprication is an indication not to use the resource. The reason why that interface is depricated was, it doesn't solve the purpose completely. Static variables and context variables can be accessed by concurrent users even if you implement SingleThreadedModel interface.
One entry found for deprecate.
Main Entry: dep·re·cate
Function: transitive verb
Inflected Form(s): -cat·ed; -cat·ing
Etymology: Latin deprecatus, past participle of deprecari to avert by prayer, from de- + precari to pray -- more at PRAY
1 a archaic : to pray against (as an evil) b : to seek to avert <deprecate the wrath ... of the Roman people -- Tobias Smollett>
2 : to express disapproval of
3 a : PLAY DOWN : make little of <speaks five languages ... but deprecates this facility -- Time> b : BELITTLE, DISPARAGE <the most reluctantly admired and least easily deprecated of ... novelists -- New Yorker>
- dep·re·cat·ing·ly /-"kA-ti[ng]-lE/ adverb
- dep·re·ca·tion /"de-pri-'kA-sh&n/ noun
BTW, SingleThreadModal has been officially deprecated in Servlet 3.0 spec