title: DataSource and DriverManager on J2SE
body: <p>I'm interested in developing a desktop application that connects to a MySQL DB.
  After reading <a href="http://docs.oracle.com/javase/tutorial/jdbc/basics/index.html" rel="nofollow">this</a> java tutorial on DB connection (and several others) I have a question.
  Using DataSource seems popular on J2EE while DriverManager is a common choise for desktop applications.
  Is it still possible to use DataSource on a desktop application? If yes, is it a better choice over DriverManager?</p>