Hi,
If the property file u r using is name value pair , then u can use resource bundle to read ur property file.U can place ur property file anywhere within ur project package hierachy and read it.
e.g ur property file name is abc.properties
and it is in package : com.properties
Code :
// Code to load property file
java.util.ResourceBundle rboResourceBundle = java.util.ResourceBundle.getBundle("com.properties.abc");
// code returns the value read from a property file of a given key.
public
String getPropertyValue(String keyName) {
return rboResourceBundle.getString(keyName);
}
I hope this will help u.
Regards
Seema