Starting and stopping servlets

At times you may wish to stop and restart the servlet without reloading the class. Also, starting a servlet causes EAServer to load the implementation class if it has not already been loaded at startup or in response to a client request.

When you stop the servlet, EAServer calls the Servlet.destroy() method. When you start the servlet, EAServer calls the Servlet.init() method, unless it has already been called on the current instance of the implementation class.

To start a servlet:

  1. Expand the Servlets folder under the server icon where the servlet is installed. Highlight the servlet’s icon.

  2. Choose File | Start.

To stop a servlet:

  1. Expand the Servlets folder under the server icon where the servlet is installed. Highlight the servlet’s icon.

  2. Choose File | Stop.

  3. EAServer Manager will ask if you want to terminate any active requests. Choose Yes to stop the servlet. If the servlet is servicing a request when you stop the servlet, the client may receive partial data or an error.