Hello,
 
I have a problem with my properties class. After archiving my service my
database controller can't locate or read the properties data.
In the data are the settings for the database connection like treiber ,
username url .
Where do I have to place the properties for the right reading and is it
possible to use a normal properties like this:
 
private boolean loadProperties() {

boolean data = false;

try {

properties.load(new FileInputStream(config));

data = true;

} catch (final FileNotFoundException e) {

System.out.println("Config File konnte nicht gefunden weren oder existiert
nicht.");

data = false;

e.printStackTrace();

} catch (final IOException e) {

System.out.println("Es ist ein Fehler beim Lesen der Config Datei
aufgetreten.");

data = false;

e.printStackTrace();

}

return data;

}// end of load Properties

 
 
I hope , that someone can help with this problem.
 
 
Best regards
Jörn 

Reply via email to