• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Load Properties file when tomcat will start

 
Sisodiya Jayesh
Greenhorn
Posts: 3
  • 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: 2907
1
Java Spring Ubuntu
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you sagar..ya got it
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic