Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok...Thank you William...
 
Saloon Keeper
Posts: 22248
151
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
Because those who mind don't matter and those who matter don't mind - Seuss. Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic