Tomcat – Manually reload Webbapplication without Tomcat Manager possible

tomcatweb-applications

I want to reload (or restart) one specific web application on an Apache Tomcat (6 or 7) server without Tomcat Manager or the automatic Reloadable attribute.
Using the manager would give again another security risk, and reloadable attribute does not work when you need to upload/copy large files since it already reloads when the upload has not yet finished.

Being root, it should be easy to reload a specific web application, instead of doing a Tomcat service restart (which reloads every web application on it), right?

Best Answer

Use JMX, and only allow attaching from localhost.