This discussion is archived
1 Reply Latest reply: Aug 28, 2011 2:00 PM by DrClap RSS

servlet instance

709779 Newbie
Currently Being Moderated
In a servlet code, I have only one Servlet class(namely NewServlet).

When this page is accessed by different clients, will only one instance be created or multiple instance be created ??
  • 1. Re: servlet instance
    DrClap Expert
    Currently Being Moderated
    Normally a servlet container will only create a single instance of a servlet. Unless you do something silly like declaring it to implement SingleThreadModel, that is. Why do you ask? Normally you should just make the servlet stateless and be done with it.


  • Correct Answers - 10 points
  • Helpful Answers - 5 points