Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

properties file

 
suresh pulapally
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
where should i place property file(file.properties)to read my bean classes.
 
Sarath Mohan
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ideal places is WEB-INF\classes

Regards
Binu
 
Arun Prasath
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I assume you want to read the property file's value from your bean.
If it is a web-app,then it should be inside WEB-INF/lib or WEB-INF/classes folder.
 
suresh pulapally
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you,
 
suresh pulapally
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
fine,we place properties file in web-inf/classes folder, if i changed any property in properties file, again we have to deploy the application,this is not the case in our requirement..is there any location that if i change any property, that should effect in application without deploying again...
 
ramprasad madathil
Ranch Hand
Posts: 489
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ideally you shouldnt be changing the properties at run-time
Having said that, if you wish to monitor the change in properties and reload your Property object that represents your properties file, you should write code that does it (**hint** a thread that polls the lastUpdatedTime() of the file and a event handler mechanism).

Thanks,
Ram.
 
suresh pulapally
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks,

can u tell me briefly, that how to do this is urgent..
thanks
suresh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic