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???
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
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.
<a href="http://forums.hotjoe.com/forums/list.page" target="_blank" rel="nofollow">Java forums using Java software</a> - Come and help get them started.
Joined: Oct 24, 2004
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 email@example.com Thanks,
Author and all-around good cowpoke
Joined: Mar 22, 2000
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 firstname.lastname@example.org
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