How can I make Apache/Tomcat notice that my servlet changed, without having to restart it?
Location: http://www.jguru.com/faq/view.jsp?EID=1027658 Created: Nov 19, 2002 Author: Shelleen Qian (http://www.jguru.com/guru/viewbio.jsp?EID=1021730) Question originally posed by Venkat Rangachari (http://www.jguru.com/guru/viewbio.jsp?EID=1026229 You need to turn on Servlet Reloading on your Tomcat. [While the below works, for Tomcat 4 another answer is simply to add the attribute reloadable=”true” to the Context element for that webapp. Sometimes you don’t want all contexts to be reloadable. -Alex] To turn on servlet reloading, edit install_dir/conf/server.xml and add a DefaultContext subelement to the main Service element and supply true for the reloadable attribute. The easiest way to do this is to find the following comment: and insert the following line just below it: