Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning 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
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

i want to load property file without restarting tomcat

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Helloo,,
My tomcat is running and mean while i have created one property file and put it in the right place...But usually ,if we want to use that property file, we restarting out tomcat...But i want to reload property file with out restarting tomcat....
Can anybody help me in this problem???
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I usually handle this by creating a "back door" request that causes the property file to be reloaded. You can generate the request off a HTML page with a simple form.
Just put the property file loading in a separate method than can be called from the init() as well as doPost or doGet.
Bill
 
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Additionally, if your Tomcat virtual host is running the manager webapp you can just reload the particular webapp you want. This would also reload your properties file. My link goes to the 5.0 Tomcat series but the configuration has been the same since 4.1.
 
Vrushank Joshi
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i m not getting what u want to say... If u have any code for this problem than plz send me that on my mail account vrushankj@yahoo.com
Thanks,
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i m not getting what u want to say... If u have any code for this problem than plz send me that on my mail account vrushankj@yahoo.com


You are completely missing the point of JavaRanch. The idea is that by working out problems such as yours in a public topic, other people can profit from your experience thus multiplying the benefit.
So - what didn't you understand about the suggestions?
Bill
 
Enjoy the full beauty of the english language. Embedded in this 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
reply
    Bookmark Topic Watch Topic
  • New Topic