Board index » jbuilder » Deprecated Interface SingleThreadModel

Deprecated Interface SingleThreadModel


2006-02-04 09:22:05 PM
jbuilder16
Hi,
javax.servlet Interface SingleThreadModel Deprecated. As of Java Servlet
API 2.4, with no direct replacement.
I was using SingleThreadModel in my applications. What should i do now?
How can i achieve like that SingleThreadmodel does?
Thanks,
 
 

Re:Deprecated Interface SingleThreadModel

Jan Tim wrote:
Quote
javax.servlet Interface SingleThreadModel Deprecated. As of Java Servlet
API 2.4, with no direct replacement.
I was using SingleThreadModel in my applications. What should i do now?
How can i achieve like that SingleThreadmodel does?
SingleThreadModel was really always a kludge for non-thread-safe code.
Queueing requests for SingleThreadModel servlets affects the performance
of the web server as a whole, hence the deprecation. Your best bet is to
figure out what parts of your code are not thread-safe and either make
them thread-safe or protect the code with the "synchronized" keyword.
--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
www.datadevelopment.com/
NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
www.datadevelopment.com/papers/index.html
Please see Borland's newsgroup guidelines at
info.borland.com/newsgroups/guide.html