title: Changing database connection string in a Java web application
body: <p>I inherited a Java web application due to my expertise in .Net(I have no experience in Java). I need to change this:</p>
  
  <pre><code>http://**DatabaseOne**.Domain.com:Port/dir1/dir2
  </code></pre>
  
  <p>to this:</p>
  
  <p><code>http://**DatabaseTwo**.Domain.com:Port/dir1/dir2</code></p>
  
  <p>In .Net we have a Webconfig file where the connection strings are stored.<br>
  My research( <a href="https://stackoverflow.com/questions/5651142/need-suggestion-on-how-to-work-with-connection-polling-in-javajspservlet">Question 1</a> <a href="https://stackoverflow.com/questions/494724/where-to-store-database-string-connection-in-java-web-app">2</a> <a href="https://stackoverflow.com/questions/3507740/java-newbie-needs-help-with-database-connection">3</a>  shows that there should be a Content.xml, Web.xml and/or Server.xml in a Java directory.</p>
  
  <p>The Content and Web xmls that I have found, do not contain the connection strings I am looking for.</p>
  
  <p>The DBManager.Java contains: </p>
  
  <pre><code>Public Connection getPoolConnection() throws JDBCConnectionException{
           return JDBCService.GetConnection("oracleUIPool");
   }
  </code></pre>
  
  <p>This Java web app seems to be a part of a larger Java web app, so the connection string must be somewhere at a higher level directory? What would be the name of this directory?</p>
  
  <p>I did notice files named Beans, JetSpeed, and Struts, if that helps.</p>