Reload Servlets without Restarting the Web Server

Technote (FAQ)
Problem
Servlets get reloaded if they are in the sevlets directory.
Solution
To make sure servlets reload whenever their content changes, place the servlet files in the Application Server/servlets directory. When a servlet is reloaded, the ServletClassLoader reloads all the classes used by the servlet, if the classes are in the /servlets directory.

The /servlets directory is a convenient place to store files that will possibly change and require reloading. However, you should store files that don't change - such as code from third-party vendors and other unmodifiable .class and .jar files - in the /clases directory.

Files in the /classes diretcory are automatically added to the Application Server classpath.
Files in the classpath are loaded by the JVM's ClassLoader. (The ClassLoader doesn't support reloading; but for files not changing, it shouldn't be necessary to reload).











    Document Information

    Product categories: Software, Application Servers, Distributed Application & Web Servers, WebSphere Application Server, General
    Operating system(s): Multi-Platform
    Software version: 3.5
    Software edition: All Editions
    Reference #: 1049710
    IBM Group: Software Group
    Modified date: 2003-10-15