View RSS Feed

Java Database

  1. Advantages of DataSource Objects

    by , 03-10-2012 at 07:56 AM
    A DataSource object is considered a good alternative of class “DriverManager” and is most preferable to be used as it creates a database connection. There is no need to hard code the JDBC URL or driver name in application while using DataSource object. Such approach is loosely coupled & more portable.

    When there is a need to do alterations then changes might be done in properties file by the admin and no code changes of ever application is needed, which is involved in its implementation. ...
    Categories
    JDBC