How to make sure that a servlet is loaded once and only once by the server.?
posted 11 years ago
The easiest way to find this, put system out in your servlet initialization method for eg: init(ServletConfig) and when you call the same servlet again, check whether the system out are printed again but it won't since initialize method is called only once for every loading in the servlet container. stop your servlet container and again start the same it will call the initialize method again