Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do i restart a webapp programmatically?

Status
Not open for further replies.

yves030

Programmer
Oct 1, 2004
4
DE
hi experts,

i have a webapplication thats needs to be restarted from
time2time... (memoryleaks and so on...)
from the tomcat-manager, one can manually reload the webapp.
thats fine, but i want to this to be done programmatically from a java-class of my webapp... without authentification and so on. i don´t know how to find out the correct classloader nor how to initiate the reload-mechanism...
any examples that help me would be very nice,

thank you,

yves
 
The easiest way is to do it from a shell/batch script - I wouldn't even consider doing it from within a web app.

--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top