ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzamy_5.4.0.1/50/program/datacrtjdbc.htm

42 lines
3.1 KiB
HTML
Raw Permalink Normal View History

2024-04-02 14:02:31 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<LINK rel="stylesheet" type="text/css" href="../../../rzahg/ic.css">
<title>Create a JDBC provider and a data source</title>
</head>
<BODY>
<!-- Java sync-link -->
<SCRIPT LANGUAGE="Javascript" SRC="../../../rzahg/synch.js" TYPE="text/javascript"></SCRIPT>
<h6><A NAME="datacrtjdbc">Create a JDBC provider and a data source</A></h6>
<p>A JDBC provider represents a JDBC driver. To access a database, your applications use data sources, which use a JDBC driver to access the database.</p>
<p>For information on how to create a JDBC provider and data source, see <a href="../admin/guimngjdbcpvdrs.htm">Manage JDBC providers for your application server</a> in the <em>Administration</em> topic.</p>
<p>Consider the following before you create a JDBC provider and data source:</p>
<ul>
<li><p>Decide which data source to use: a Version 4.0 or a Version 5.0 data source.
<br>A Version 5.0 data source is used by a J2EE 1.3 application to access the data from the database. A data source is created under a JDBC provider, which provides the specific JDBC driver implementation class. If your application uses EJB 2.0 modules, only Version 5.0 data sources can be used.</p>
<p>A Version 4.0 data source is used by a J2EE 1.2 application to access the data from the database. A data source is created under a JDBC provider, which provides the specific JDBC driver implementation class. If your application uses EJB 1.1 modules, only Version 4.0 data source can be used.</p>
<p>Although WebSphere Application Server - Express supports WebSphere Application Server Version 4.0 data sources, it is recommended that you use the WebSphere Application Server - Express specifications for all new data sources.</p>
</li>
<li><p>Decide which JDBC provider to implement.
<br>For more information, see <a href="datasrcsp.htm">Available JDBC providers</a>.</p>
</li>
<li><p>(Optional) If your application is configured using WebSphere Application Server - Express security, and you have created a J2C authentication data entry, the <strong>Component-managed Authentication Alias</strong> field is used for database authentication in run time. If you do not set this field, and your database requires a user ID and password to get a connection, you receive an exception during run time. If your resource authentication (res-auth) is set to Application, set the alias in the Component-managed Authentication Alias.</p></li>
<li><p>(Optional) If your application is configured using WebSphere Application Server - Express security, and you have created a J2C authentication data entry, the <strong>Container-managed Authentication Alias</strong> field is used for database authentication in run time. If you do not set this field, and your database requires a user ID and password to get a connection, then you receive an exception during run time. If your resource authentication (res-auth) is set to Container, set the alias in the Container-managed Authentication Alias.</p></li>
</ul>
</body>
</html>