title: Connection timeout for DriverManager getConnection
body: <p>I am trying to connect to DB using the standard JDBC way</p>
  
  <pre><code>connection = DriverManager.getConnection(url, username, password);
  </code></pre>
  
  <p>Is there a maximum value of timeout on the connection, how long does a connection live, can I increase the value. I want in cases the connection to be open forever , is it a good idea.</p>