10.12.2012 Views

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Web Modules<br />

88<br />

To enable dynamic reloading, use the Admin Console:<br />

1. Select the Applications Server node.<br />

2. Select the Advanced tab.<br />

3. Check the Reload Enabled box to enable dynamic reloading.<br />

4. Enter a number of seconds in the Reload Poll Interval field to set the interval at which<br />

applications and modules are checked for code changes and dynamically reloaded.<br />

5. Click the Save button.<br />

In addition, to load new servlet files or reload deployment descriptor changes, you must do the<br />

following:<br />

1. Create an empty file named .reload at the root of the module:<br />

domain-dir/applications/j2ee-modules/context-root/.reload<br />

2. Explicitly update the .reload file’s time stamp each time you make these changes. On<br />

UNIX, execute<br />

touch .reload<br />

For JSP pages, changes are reloaded automatically at a frequency set in the Reload Poll Interval<br />

field. To disable dynamic reloading of JSP pages, set the Reload Poll Interval field value to –1.<br />

UndeployingWeb Modules<br />

You can undeploy web modules in four ways: you can use NetBeans IDE, the Admin Console,<br />

the asadmin command, or the Ant tool.<br />

To use NetBeans IDE:<br />

1. Ensure the Application Server is running.<br />

2. In the Runtime window, expand the Application Server instance and the node containing<br />

the application or module.<br />

3. Right-click the application or module and choose Undeploy.<br />

To use the Admin Console:<br />

1. Open the URL http://localhost:4848/asadmin in a browser.<br />

2. Expand the Applications node.<br />

3. Select Web Applications.<br />

4. Click the check box next to the module you wish to undeploy.<br />

5. Click the Undeploy button.<br />

Use the asadmin command as follows:<br />

asadmin undeploy context-root<br />

<strong>The</strong> <strong>Java</strong> <strong>EE</strong> 5<strong>Tutorial</strong> • June 2010

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!