Over the last couple of days I was wondering how to hot deploy webapps in Tomcat? After trying all possible search queries in Google I gave up. But I knew for sure that it was possible to hot deploy webapps in Tomcat, as I had done it before.
I started playing with Sysdeo Eclipse Tomcat Launcher plugin. This plugin had an option to make the context reloadable. It actually updates the server.xml under the tomcat/conf dir. This is how I figured out how to make this work for any webapp.
Just add the following line to the server.xml
<br /> <Context path="/yourContext" reloadable="true" docBase="rootFolderOfYourApp" /><br />
Now I don‘t have to stop and start tomcat for a small change in a class file to reflect.