Task overview: Access data from applications
Various enterprise information systems (EIS) use different methods for storing data. These backend data stores might be relational databases, procedural transaction programs, or object-oriented databases.
IBM WebSphere Application Server provides several options for accessing an information system backend data store:
- Programming directly to the database through the JDBC API
- Programming to the procedural backend transaction through Java EE Connector Architecture (JCA) connectors.
- Programming in the bean-managed persistence (BMP) bean or servlets indirectly accessing the backend store through either the JDBC API or JCA-compliant connectors.
- Use container-managed persistence (CMP) beans.
- Using embedded Structured Query Language in Java (SQLJ) support with applications that use DB2 as a backend database.
- The IBM data access beans also use the JDBC API, and give you a rich set of features and function that hide much of the complexity associated with accessing relational databases.
For all these options, except for using the JCA 1.0 or 1.5 compliant connectors, the prerequisite website details the databases and drivers that are currently supported.
Tasks
- Develop data access applications.
Develop the application to access data using the various ways available through the application server. We can access data through APIs, container-managed persistence beans, bean-managed persistence beans, session beans, or web components.
- Assemble data access applications
Assemble the application by creating and mapping resource references.
- Prepare for deployment by ensuring that the appropriate database objects are available. Create or configure any databases or tables required, set necessary configuration parameters to handle expected load, and configure any necessary JDBC providers and data source objects for servlets, enterprise beans, and client applications to use. See the topic Deploying data access applications
- Install the application on the application server. See the topic Installing enterprise application files.
Related:
Relational resource adapters and JCA JDBC providers Data sources Data access beans Connection management architecture Cache instances Use object cache instances Developing data access applications Assemble data access (EJB) applications Deploy data access (EJB) applications Install enterprise application files Administer data access applications J2C Administered Objects collection J2C Activation Specifications collection WAS prerequisite website