• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring Property reading

 
Shardul Vyawahare
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,


I m using the Spring 3 in my project. Currently I am reading the property files using java.util.Properties class so every time code runs. It reads the necessary property file every time.
I want the way out that I will read the property files once. So I was thinking of creating POJO for every property file and initiating POJO in Application Context. This will work fine but problem is if I changed the property file at run time it should come in affect without restarting tomcat . is it possible in Spring that property file will be read only if it changed otherwise it will use existing loaded context ?

Shardul
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic