View RSS Feed

JDBC

Java Database Connectivity (JDBC) examples. SQL with Java.

  1. Advantages of DataSource Objects

    by , 04-27-2012 at 07:05 PM
    Because of its properties, a DataSource object is a better alternative than the DriverManager class for getting a connection. Programmers no longer have to hard code the driver name or JDBC URL in their applications, which makes them more portable. Also, DataSource properties make maintaining code much simpler. If there is a change, the system administrator can update data source properties and not be concerned about changing every application that makes a connection to the data source. For example, ...