System.getProperty("catalina.base") There can be scenario where client may use any other server
<p>I am reading a properties file from <code>Tomcat\conf\somename.properties</code> directory using </p>

<pre><code>String demo = System.getProperty("catalina.base") 
    + File.Separator + "conf\somename.properties";
</code></pre>

<p>This is working perfectly fine with Tomcat. But, there can be scenario where client may use any other server like Glassfish or Websphere, in that case I won't be able to get <code>System.getProperty("catalina.base")</code>.</p>

<p>How should I solve it properly? I m able to do that using <code>ResourceBundle</code> but for that I have to keep my properties file in my build, which I don't want. I just want to read my properties file from outside my build.</p>
