my-app-0.0.1.jar
|_ META-INF
|_ config.properties
El siguiente código me permitirá leer el archivo de propiedades y obtener una propiedad del mismo:
try {
InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("META-INF/config.properties");
Properties props = new Properties();
String wsURL = null;
if (inputStream != null) {
props.load(inputStream);
wsURL = props.getProperty("myApp.webServiceURL");
inputStream.close();
}
} catch(IOException e) {}

