How can I tell when a servlet is instantiated?
A servlet must be instantiated before it is brought into service by the servlet container, so one way to check is to make a request to the servlet and check the response. If you need to check indirectly, you can override the init(ServletConfig) method and add log(String) statements to it. This method is called after the servlet container has instantiated the servlet before it is brought into service. Actions: Follow-up, clarify or correct this answer. Submit a new question.