*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
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
 
wood burning stoves
 
subject: Changes in properties file should get reflected with out restarting server