1 Reply Latest reply on Aug 28, 2011 9:00 PM by DrClap

    servlet instance

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