|
Home TOC |
|
Modifying the Application
Since the Java Web Services Developer Pack is intended for experimentation, it supports iterative development. Whenever you make a change to an application, you must redeploy and reload the application.
Modifying a Class File
To modify a class file in a Java component, you change the source code, recompile it, and redeploy the application. For example, suppose that you want to change the exchange rate in the
dollarToYenmethod of theConverterclass:
- Edit
Converter.javain the source directory.- Recompile
Converter.javaby typingantbuild.- Redeploy
Converter.javaby typingantdeploy.- Restart the Web application.
- Reload the JSP page in the Web browser.
Modifying the Web Client
- Edit
index.jspin the source directory.- Redeploy
index.jspby typingantdeploy.- Reload the Web application.
- Reload the application in the Web browser.
Reloading the Application
You reload an application with the command:
http://localhost:8080/manager/reload?path=/targetThis command invokes the
managerWeb application. Before you can use this application you must add your user name/password combination and associate the role namemanagerwith it to <JWSDP_HOME>/conf/tomcat-users.xml, which can be edited with any text editor. This file contains an element<user>for each individual user, which might look something like this:<user name="adeveloper" password="secret" roles="manager" />The Tomcat reference documentation distributed with the Java WSDP contains information about the manager application.
|
Home TOC |
|