This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Load Properties file when tomcat will start

 
Sisodiya Jayesh
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

Any buddy no how to load properties file in tomcat when tomcat will start first time and how to get propertes value in java file ?
 
Sagar Rohankar
Ranch Hand
Posts: 2905
1
Java Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sisodiya Jayesh:

Any buddy no how to load properties file in tomcat when tomcat will start first time and how to get propertes value in java file ?


I guessed you want to say , How to load properties files when your web application deployed (starts) ,

then

Search Or look at this link for "ContexListener' , and load your properties files into it !!
 
Sisodiya Jayesh
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you sagar..ya got it
 
Sagar Rohankar
Ranch Hand
Posts: 2905
1
Java Spring Ubuntu
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic