View RSS Feed

Recent Blogs Posts

  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, ...
  2. Using DataSource Objects to Get a Connection

    by , 04-27-2012 at 07:04 PM
    Objects instantiated by classes that implement the DataSource represent a particular DBMS or some other data source, such as a file. A DataSource object represents a particular DBMS or some other data source, such as a file. If a company uses more than one data source, it will deploy a separate DataSource object for each of them. The DataSource interface is implemented by a driver vendor. It can be implemented in three different ways:

    • A basic DataSource implementation produces standard ...
    Categories
    Connection
  3. 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
  4. Using DataSource Objects to Get a Connection

    by , 03-10-2012 at 07:54 AM
    Classes instantiate object which implement Datasource. This presents particular some data source like a file, or DBMS.

    A particular DBMS is presented by a DataSource object. For more than 1 data source usage, it is required to have separate DataSource objects for every data source. There are 3 ways for implementation of the DataSource interface.

    • Standard Connection objects are produced by the implementation of basic DataSource. These objects are not used or pooled
    ...
    Categories
    JDBC