By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,718 Members | 1,840 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,718 IT Pros & Developers. It's quick & easy.

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

P: 2
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 in the properties file ,
My question is

in the server.xml if we add <context path = /.... reloadable = true> , i think this will reload the app only if there is any change in java files

In the work folder if there is any timestamp difference between .jsp and .class it will recompile

how to deal with the .xml or .properties files i.e will the values have any effect with out restarting the tomcat

Thanks
Vikram
Sep 20 '07 #1
Share this Question
Share on Google+
2 Replies


Nepomuk
Expert 2.5K+
P: 3,112
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 in the properties file ,
My question is

in the server.xml if we add <context path = /.... reloadable = true> , i think this will reload the app only if there is any change in java files

In the work folder if there is any timestamp difference between .jsp and .class it will recompile

how to deal with the .xml or .properties files i.e will the values have any effect with out restarting the tomcat

Thanks
Vikram
Which Version of Tomcat are you using? Because, Version 5.5 certainly has a reload-function, which gets active whenever it realizes that something was changed. It doesn't work with everything, but certainly recompiling classes let's it do so.

Greetings,
Nepomuk
Sep 20 '07 #2

P: 2
Thanks for the reply iam using Tomcat5.5.23 version , yeah it reloads the app if it detects any changes in java ,but iam looking if it is possible with properties or xml files for e.g. local.properties .....

Vikram





Which Version of Tomcat are you using? Because, Version 5.5 certainly has a reload-function, which gets active whenever it realizes that something was changed. It doesn't work with everything, but certainly recompiling classes let's it do so.

Greetings,
Nepomuk
Sep 21 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.