Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I make Apache/Tomcat notice that my servlet changed, without having to restart it?

0
Posted

How can I make Apache/Tomcat notice that my servlet changed, without having to restart it?

0

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:

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123