title: How to read external properties files in WebSphere?
body: <p>I developed a sample web application which will read the data from an external properties file. The properties file is in the source folder in my system and is not included inside the WAR file.</p>
  
  <p>The property file is accessed like this:</p>
  
  <pre><code>Properties prop = new Properties();
  //File f1 = new File("Property.properties");
  prop.load(getClass().getClassLoader().getResourceAsStream("Property.properties"));
  </code></pre>
  
  <ol>
  <li>How do I access this property file externally inside the WAR file?</li>
  <li>What changes have to be made in the code to read it in the WAR file?</li>
  </ol>