title: How a JAR file can read an external properties file
body: <p>We have a connection pooling component (JAR file) for one of our application. As of now the application connection details are bundled with-in the JAR file (in <code>.properties</code> file).</p>
  
  <p>Can we make it more generic? Can we have the client tell the properties file details (both the path and the file name) and  use the JAR to get the connection?</p>
  
  <p>Does it make sense to have something like this in the client code:</p>
  
  <pre><code>XyzConnection con = connectionIF.getConnection(uname, pwd);
  </code></pre>
  
  <p>Along with this, the client will specify (somehow???) the properties file details that has the URLs to connect, timeout etc.</p>