background image

Listing Deployed Web Modules

<< Deploying with the Admin Console | Dynamic Reloading >>
<< Deploying with the Admin Console | Dynamic Reloading >>

Listing Deployed Web Modules

To test the application, follow these steps:
1. Open a web browser.
2. Enter the following URL in the web address box:
http://localhost:8080/hello1
3. Enter your name, and click Submit.
The application should display the name you submitted as shown in
Figure 3­3
and
Figure 3­4
.
Listing Deployed Web Modules
The Application Server provides two ways to view the deployed web modules: the Admin
Console and the asadmin command.
To use the Admin Console:
1. Open the URL http://localhost:4848/asadmin in a browser.
2. Expand the nodes Applications
Web Applications.
Use the asadmin command as follows:
asadmin list-components
Updating Web Modules
A typical iterative development cycle involves deploying a web module and then making
changes to the application components. To update a deployed web module, you must do the
following:
1. Recompile any modified classes.
2. If you have deployed a packaged web module, update any modified components in the
WAR.
3. Redeploy the module.
4. Reload the URL in the client.
Updating a Packaged Web Module
This section describes how to update the hello1 web module that you packaged.
First, change the greeting in the file
tut-install/javaeetutorial5/examples/web/hello1/web/index.jsp to
<h2>Hi, my name is Duke. What
's yours?</h2>
Web Modules
The Java EE 5 Tutorial · September 2007
86