WebSphere support for data sources

 

+

Search Tips   |   Advanced Search

 

The programming model for accessing a data source is as follows:

  1. An application retrieves a DataSource object from the JNDI naming space.

  2. After the DataSource object is obtained, the application code calls getConnection() on the data source to get a Connection object. The connection is obtained from a pool of connections.

  3. Once the connection is acquired, the application sends SQL queries or updates to the database.

WAS supports the followin data source versions...

Versions differ in how connections are handled. However, from an application point of view, they look the same.

To create a data source:

  1. Create a JDBC provider, which provides the vendor-specific data source classpath.

  2. Create a data source.

The JDBC data source encapsulates the database-specific connection settings.

Next