Refreshing servlets

The refresh feature is useful for debugging, since it allows you to load a changed version of the implementation class without restarting the server. If your implementation relies on other classes that must also be reloaded when the implementation is refreshed, specify them on the Java Classes tab in the Servlet Properties window. See “Java Classes settings”.

All servlets that are not installed in a Web application are considered to be part of the default Web application (EASDefault), and all servlets within the same Web application are refreshed at the same time.

To refresh all servlets in the Installed Servlets folder:

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

  2. Choose File | Refresh.

  3. EAServer Manager will ask if you want to terminate any active requests. Choose Yes to refresh. If one of the servlets is servicing a request at this time, the client may receive partial data or an error. Choose No to cancel the refresh operation.

To refresh all the servlets in a Web application:

  1. Expand the server icon where the servlet is installed and highlight the Web application name under one of these folders:

  2. Choose File | Refresh.

  3. EAServer Manager will ask if you want to terminate any active requests. Choose Yes to refresh. If one of the servlets is servicing a request at this time, the client may receive partial data or an error. Choose No to cancel the refresh operation.

When you refresh a servlet, EAServer calls the servlet’s Servlet.destroy() method, reloads the implementation class and any classes specified on the Java Classes tab, and then calls the Servlet.init() method in the new instance.