Did this, but using java.util.Properties
:
String path = System.getProperty("jboss.server.config.url") + propertiesFileName;
Properties props = new Properties();
URL url = new URL(path);
props.load(url.openStream());
The Properties
class has all the neccessary methods for reading key-value-pairs (it also implements Map<Object,Object>
).