1 Reply Latest reply: Aug 28, 2011 4:00 PM by DrClap RSS

    servlet instance

    709779
      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
          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.