aspose file tools*
The moose likes Tomcat and the fly likes Load Properties file when tomcat will start Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Load Properties file when tomcat will start" Watch "Load Properties file when tomcat will start" New topic
Author

Load Properties file when tomcat will start

Sisodiya Jayesh
Greenhorn

Joined: Aug 11, 2008
Posts: 3
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

Joined: Feb 19, 2008
Posts: 2902
    
    1

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 !!


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Sisodiya Jayesh
Greenhorn

Joined: Aug 11, 2008
Posts: 3
Thank you sagar..ya got it
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

You are welcome !
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Load Properties file when tomcat will start