1
Is it possible to reload a single class manually with Tomcat 8 without having to restart the server? This is for a production environment that I'm talking about, so I don't want to use the reloadable
attribute to achieve this. I just occasionally might have an update to a single class (or couple of classes) that I'd like tomcat to recognize.
Since it is possible to do this with the reloadable
attribute, or setting watched resources, I was hoping it's also possible to trigger manually somehow.
I tried
touch
ing my web.xml on a development server, but there was no reload. I also tried adding something new to the web.xml and saving it, but still no reload. Are you sure about that tip? – RTF – 2015-11-03T18:36:49.837Sorry. You need redploy. I've updated my answer. – Mark Thomas – 2015-11-03T18:40:23.037
For the record, reload is effectively stop followed by start whereas redploy is equivalent to removing the web app and adding a new one. Some requests may get lost if they arrive in the middle of the redeploy. – Mark Thomas – 2015-11-03T18:41:36.383
Thanks for the help, but I decided to go with the Tomcat Manager instead – RTF – 2015-11-06T13:11:27.060