Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
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: 15957
    
  19

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://aspose.com/file-tools
 
subject: Tomcat Cache refresh with out restarting tomcat(.properties files)
 
Similar Threads
Changes in properties file should get reflected with out restarting server
restarting tomcat??
Unable to load tag handler class!!!
Tomcat Cache refresh with out restarting tomcat(.properties files)
OSCache tag library