Sun Java System Web Server 7.0 Update 2 Developer's Guide to Java Web Applications

Dynamic Reloading of Web Applications

To set dynamic reloading of web application, you must do the following:

ProcedureTo Set Dynamic Reloading of Web Application

  1. Access the Admin Console. Select the server instances and click the Edit Configuration tab.

  2. Click the Java tab.

  3. Click the Servlet Container tab.

  4. In the Dynamic Reload Interval field, type an integer, that specifies the interval (in seconds) after which a deployed application will be checked for modifications and reloaded if necessary.

    • To enable dynamic reloading, you must specify a value greater than 0.

    To disable dynamic reloading set the field to —1

  5. Click Save.

    Tip –

    To configure through the CLI, use the set-servlet-container-prop(1) command.

ProcedureTo Load a New Servlet or Reload a Deployment Descriptor

  1. Create an empty file named .reload at the root of the deployed module.

    For example:


    where vs_id is the virtual server ID in which the web application is deployed, and uri is the value of the uri attribute of the webapp/ element.

  2. Type touch .reload to explicitly update the .reload file's timestamp each time you make the above changes.

    For JSPs, changes are reloaded automatically at a frequency set in the reload-interval property of the jsp-config element in the sun-web.xml file. To disable dynamic reloading of JSPs, set the reload-interval property to -1.