File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 12675
    
    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


Java Resources at www.wbrogden.com
Ravi Khakhkhar
Greenhorn

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

Joined: Jun 25, 2001
Posts: 15629
    
  15

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
 
Similar Threads
Class Reloading Problem in tomcat 3.1
Openning a file at client
In which cases does the container CHECK the web.xml
How to reload context in eclipse
Configuring SSL with Eclipse