File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Changes in properties file should get reflected with out restarting server 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 » Frameworks » Struts
Reply Bookmark "Changes in properties file should get reflected with out restarting server" Watch "Changes in properties file should get reflected with out restarting server" New topic
Author

Changes in properties file should get reflected with out restarting server

Manju Na
Greenhorn

Joined: Aug 18, 2011
Posts: 11
Hi

If there is any changes in properties file(message.properties) tomcat cache should be refreshed with out restarting it .
Request to tell me how to proceed.


Thanks in Advance.
Manju
Mohana Rao Sv
Ranch Hand

Joined: Aug 01, 2007
Posts: 485

Put your project in dev mode. Add the following constant in struts.xml file <constant name="struts.devMode" value="true" />.


ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
Manju Na
Greenhorn

Joined: Aug 18, 2011
Posts: 11
Thanks for reply.
I have tried with <constant name="struts.devMode" value="true" />. If there is changes in message.properties file but still container holding the old value only.
the tomcat cache is not refreshing.

Thanks
Manju
Manju Na
Greenhorn

Joined: Aug 18, 2011
Posts: 11
Am using Struts 1.2.
Manju Na
Greenhorn

Joined: Aug 18, 2011
Posts: 11
Hi Experts,
Need help in this enhancement. please help me out.


Thanks
Manju
 
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: Changes in properties file should get reflected with out restarting server
 
Similar Threads
Recognizing properties file changes without restarting Tomcat
Log4j - Dynamic loading of config file
Relocating JSPs
Runtime changes to log4j.properties
How to specify application configuration file