title: How to establish a connection pool in JDBC?
body: <p>Can anybody provide examples or links on how to establish a JDBC connection pool?</p>
  
  <p>From searching google I see many different ways of doing this and it is rather confusing.</p>
  
  <p>Ultimately I need the code to return a <code>java.sql.Connection</code> object, but I am having trouble getting started..any suggestions welcome.</p>
  
  <p><strong>Update:</strong>  Doesn't <code>javax.sql</code> or <code>java.sql</code> have pooled connection implementations? Why wouldn't it be best to use these?</p>