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 Tomcat Cache refresh with out restarting tomcat(.properties files) Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "Tomcat Cache refresh with out restarting tomcat(.properties files)" Watch "Tomcat Cache refresh with out restarting tomcat(.properties files)" New topic
Author

Tomcat Cache refresh with out restarting tomcat(.properties files)

Manju Na
Greenhorn

Joined: Aug 18, 2011
Posts: 11
Hi
Iam working on a task in which i need to refresh the tomcat cache with out restarting it when there is any new entry or updation in the message.properties file.
how to deal with the .properties files i.e will the values have any effect with out restarting the tomcat. I am using tomcat 5.5 and struts 1.2. please help me out.


Thanks in Advance
Manju
Manju Na
Greenhorn

Joined: Aug 18, 2011
Posts: 11
Hi all,
I am using tomcat 5.5.

Thanks
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14487
    
    7

Tomcat doesn't have a cache. And property files are data files. In order for changes in data to "take", the code that reads that data needs to be informed that it must re-read the properties, assuming the usual scenario where the properties are loaded into a Properties object all at once.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Tomcat Cache refresh with out restarting tomcat(.properties files)
 
Similar Threads
OSCache tag library
restarting tomcat??
Changes in properties file should get reflected with out restarting server
Tomcat Cache refresh with out restarting tomcat(.properties files)
Unable to load tag handler class!!!