File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Turn on Servlet Reloading? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Turn on Servlet Reloading?" Watch "Turn on Servlet Reloading?" New topic

Turn on Servlet Reloading?

bat ken

Joined: Dec 28, 2005
Posts: 24
Hello friends,

I am learning to set up tomcat apache server, I found some website is require us to turn on servlet reloading by Edit "install_dir/conf/context.xml" and change

<Context reloadable="true">

Can anyone tell me the purpose of doing this?

please help...

thank you
[ April 02, 2006: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63548

By doing so in development, the container will monitor the web app and automatically trigger a reload if class files or jars get added or changed.

This should never be done in production as the monitoring is costly.

[Asking smart questions] [About Bear] [Books by Bear]
bat ken

Joined: Dec 28, 2005
Posts: 24
Thanks alot!

But what do means by saying that it is "costly"? since I only change the code
subject: Turn on Servlet Reloading?
jQuery in Action, 3rd edition