Sun Java System Application Server Platform Edition 8.1 2005Q2 Update 2 Administration Guide

- Previous: To enable or disable an application or module
- Next: Deployment Methods for Developers

## To configure dynamic reloading

If dynamic reloading is enabled, the server periodically checks for changes in a deployed application and automatically reloads the application with the changes. Changes are signaled by a date change to a file called `.reload` that you create manually. The applications must be installed in domain-dir`/applications/j2ee-modules` module-name or domain-dir`/applications/j2ee-apps/`app-name

For example:

    /opt/SUNWappserver/domain/domain1/applications/j2ee-modules/webapps-simple

Dynamic reloading is useful in a development environment because it allows code changes to be tested quickly. In a production environment, however, dynamic reloading may degrade performance.

1. In the tree component, select Application Server.

2. Click Advanced.

3. On the Applications Configuration page, configure the following:

   - Reload: Enable or disable dynamic reloading with the Enabled checkbox.

   - Reload Poll Interval: Specify how often the server checks for changes in the deployed applications.

   - Admin Session Timeout: Specify the amount of time before the Admin Session times out and you have to log in again.

##### Next Steps

After configuring the system to use dynamic reloading, for every application to be reloaded dynamically, create a file called .reload and put it in the application’s directory. The file does not have any content. When you change the application, change the date of the file (for example, using the UNIX `touch` command), and the changes are reloaded automatically.

##### See Also

To use auto deploy

- Previous: To enable or disable an application or module
- Next: Deployment Methods for Developers

- © 2010, Oracle Corporation and/or its affiliates