background image

Undeploying Web Modules

<< Dynamic Reloading | Configuring Web Applications >>
<< Dynamic Reloading | Configuring Web Applications >>

Undeploying Web Modules

To enable dynamic reloading, use the Admin Console:
1. Select the Applications Server node.
2. Select the Advanced tab.
3. Check the Reload Enabled box to enable dynamic reloading.
4. Enter a number of seconds in the Reload Poll Interval field to set the interval at which
applications and modules are checked for code changes and dynamically reloaded.
5. Click the Save button.
In addition, to load new servlet files or reload deployment descriptor changes, you must do the
following:
1. Create an empty file named .reload at the root of the module:
domain-dir/applications/j2ee-modules/context-root/.reload
2. Explicitly update the .reload file's time stamp each time you make these changes. On
UNIX, execute
touch .reload
For JSP pages, changes are reloaded automatically at a frequency set in the Reload Poll Interval
field. To disable dynamic reloading of JSP pages, set the Reload Poll Interval field value to ­1.
Undeploying Web Modules
You can undeploy web modules in four ways: you can use NetBeans IDE, the Admin Console,
the asadmin command, or the Ant tool.
To use NetBeans IDE:
1. Ensure the Sun Java System Application Server is running.
2. In the Runtime window, expand the Sun Java System Application Server instance and the
node containing the application or module.
3. Right-click the application or module and choose Undeploy.
To use the Admin Console:
1. Open the URL http://localhost:4848/asadmin in a browser.
2. Expand the Applications node.
3. Select Web Applications.
4. Click the check box next to the module you wish to undeploy.
5. Click the Undeploy button.
Use the asadmin command as follows:
Web Modules
The Java EE 5 Tutorial · September 2007
88