I have a tomcat embedded server to test my web applications and I would like to be able to start and stop applications that are already deployed, how can I do that?
Asked
Active
Viewed 138 times
0
-
1How you deploy it? – Lemmy Apr 11 '20 at 12:04
-
I created a folder and I put in my wars files and in my code. `tomcat.getHost (). setAutoDeploy (true);` – Belgacem Apr 11 '20 at 12:56
1 Answers
0
You deploy the Manager App too, and use it to:
- Upload and Deploy WAR file
- Deploy local Directory or WAR file
- Start Application
- Stop Application
- Undeploy Application
- ...
Alternatively, to just Start and Stop an Application, you can use JMX, and invoke the start
and stop
methods on e.g. Catalina:type=Manager,context=/servlets-examples,host=localhost
.

Andreas
- 154,647
- 11
- 152
- 247