In the web-application I\'m developing I currently use a naive solution when connecting to the database:
Connection c = DriverManager.getConnection(\"url\",
Advantages: