I am new to GWT, I want to read a property file, which stores database host, port, username, password. I have placed a config.properties files in server package.
Properties prop = new Properties();
prop.load(new FileInputStream("DBConfig.properties"));
string host = prop.getProperty("host");
property file...
host=127.0.0.1
port=3306
username=root
password=root
I used constants as well. That didn't work for me.
I would really appreciate another approach. Thanks in advance.