This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Tomcat and the fly likes Causing Tomcat to reload automatically after changes have been made server.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Causing Tomcat to reload automatically after changes have been made server.xml" Watch "Causing Tomcat to reload automatically after changes have been made server.xml" New topic
Author

Causing Tomcat to reload automatically after changes have been made server.xml

Ravi Khakhkhar
Greenhorn

Joined: Sep 01, 2011
Posts: 3
Causing Tomcat to reload automatically after changes have been made server.xml.
I want not to reload server manually after I make changes in server.xml.

How to do that??
It would be great if someone can do the honor.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
Tomcat does not monitor the timestamp of server.xml after once starting.

Since the range of possible changes to server.xml covers practically everything Tomcat does, there would be no sense to it.

Bill

Ravi Khakhkhar
Greenhorn

Joined: Sep 01, 2011
Posts: 3
Ok...Thank you William...
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16019
    
  20

William Brogden wrote:Tomcat does not monitor the timestamp of server.xml after once starting.

Since the range of possible changes to server.xml covers practically everything Tomcat does, there would be no sense to it.

Bill



Which is why it's not recommended to put your application Context definitions in server.xml.

If you put Context as a separate file in the context directory (conf/Calalina/localhost, by default), or if you put a META-INF/context.xml in your WAR, the webapp can be updated without shutting down Tomcat.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
jQuery in Action, 2nd edition
 
subject: Causing Tomcat to reload automatically after changes have been made server.xml