title: How to get a DataSource?
body: <p>I'm not certain how to get a <code>DataSource</code> object. I was able to use the <code>DriverManager</code> method to obtain a connection to a SQL database running on localhost, but every time I try to use the <code>DataSource</code> method to do so I wind up getting exceptions (mostly for naming). </p>
  
  <p>What I was wondering is:</p>
  
  <ol>
  <li>Is it possible to get a <code>DataSource</code> object for local hosted databases?</li>
  <li>Does the <code>DataSource</code> class need to be published, or is it like <code>DriverManager</code> where you just get a connection with no new class creation?</li>
  <li>Could you show an example?</li>
  </ol>