|
Download
FAQ History |
|
API
Search Feedback |
Running Manager Commands Using Ant Tasks
The version of
Antdistributed with the Java WSDP supports tasks that invokemanagercommands, thus allowing you to run the commands from a terminal window. The tasks are summarized in Table B-2.
Note: An application that is installed is not available after Tomcat is restarted. To make an application permanently available, use the
deploytask.
Since a user of the
manageris required to be authenticated, theAnttasks takeusernameandpasswordattributes in addition to the URL. Instead of embedding these in theAntbuild file, you can use the approach followed by the tutorial examples. You set theusernameandpasswordproperties in a file namedbuild.propertiesin the directory<INSTALL>/examples/commonas follows:Replace
ManagerNameandManagerPasswordwith the values you specified for the user name and password when you installed the Java WSDP.The
Antbuild files import these properties with the following element:The document Manager App HOW-TO, distributed with the Java WSDP at <
JWSDP_HOME>/docs/tomcat/manager-howto.html, contains reference information about the Ant tasks application.
|
Download
FAQ History |
|
API
Search Feedback |
All of the material in The Java(TM) Web Services Tutorial is copyright-protected and may not be published in other works without express written permission from Sun Microsystems.