The servlet container may create multiple instances of the servlet and dispatch each servlet request to a different servlet instance.
J2ee says YES to this.HFS says NO
How can container have many instances?
Also let me know does this Model, makes Instance variables thread safe?
What is difference in Instance and class variables?
And Does this Model effect Final instance variables? ARe they thread safe before and after it???
There would be only one servlet instance always, even if there are two URL-mappings for the same servlet.
If the SingleThreadModel (deprecated as per 2.4 Spec) is used, the container creates one instance of the servlet, and queues up the requests for that servlet, serving one client at a time.
Did you ever grow anything in the garden of your mind? - Fred Rogers. Tiny ad:
Programmatically Create PDF Using Free Spire.PDF with Javahttps://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire