wood burning stoves 2.0*
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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Causing Tomcat to reload automatically after changes have been made server.xml