You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Nilesh Yadav <Ni...@lntinfotech.com> on 2008/03/18 09:39:44 UTC

issue:reading the constant variables from txt/properties file

Hi All ;

can anyone suggest me regarding the following issue.
it's urgent.

environmental situation:
I am working on the hyperion portal HS9; here on this server Two 
tomcats(both of :5.0.28) are present; one is used to run this portal & 
another one is used to run the 6 java applications present(publish) on 
this portal those are devloped by using the Sun jav & hyperion Api.
here my six applications were taking the common variables(those are 
defined like:public static final String var="value" ) from one of the 
.java files previously. later on i changed it & we are taking these all 
variables from the one of the .properties file say config.properties.
also test server is not distributed but production server is distributed 

issue:
it is found that when i will change the value  in the config file & 
restart the server it gets reflected in the 6 applications those are using 
these
variables; it is ok for the test server(say TestServerA) which is not 
distributed. but my production environment is distributed for load 
balancing say prodserverA &ProdServerB here after the change in the config 
file i need to compile all the applications & then restarting tomcat is 
only reflecting this changes in the apps. ideally as similar the test 
environment it should have reflected only by server startup but i had to 
recompile the apps; i do not want to recompile the appliactions.
here other prod server ProdServerB is considered as virtual for my 
application & i have deploy my application only on prodserverA 
i don't know whether it is because of distributed environment/not? & do 
not the exact cause 
can anyone tell/help me, why this is happening like this???
please send me the solution/suggestion regarding this ???


Thanks & Regards
Nilesh Yadav

______________________________________________________________________