Download
FAQ History |
![]() ![]() ![]() |
API
Search Feedback |
Deploying Web Applications
You can also notify Tomcat of a new context with the manager application
deploy
command invoked via theAnt
deploy
task. You can use theAnt
deploy
task to permanently deploy a context to Tomcat while Tomcat is running:<deploy url="url
" path="mywebapp
" war="file:/path
/to
/mywebapp.
war" username="username
" password="password
" />Unlike the
install
task, which can reference an unpacked directory, thedeploy
task requires a WAR. Thedeploy
task:You can deploy to a remote server with this task. It's recommended that you deploy an application when you have finished developing the application.
The following additional deployment methods are also available, but they require you to restart Tomcat:
Some of the example build files contain an
Ant
deploy
target that invokes theAnt
deploy
task.
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.