"Implementing the SingleThreadModel interface doesn't ensure that the servlet is threadsafe" is it right?
It's better burn out than to fade away.
posted 15 years ago
Yes this is true. Implementing SingleThreadModelInterface ensures that no 2 threads would access ur service method simultaneously, BUT --The attributes in session and application scopes are accessible from other threads also. --Class variables NOT thread safe(same copy goes to multiple instances if container creates multiple instances in SingleThreadModel interface). Ajay Rana SCJP,SCWCD