Information Center

Registering a JDBC driver

The sections of this online help file are:
JDBC driver
Registering a JDBC driver
Deploying a JDBC driver

JDBC driver

To connect to a database server running on a remote host, the user needs a Java Database Connectivity (JDBC) driver installed on the client workstation.

The Z and I Emulator for Web client and the Database On-Demand client already include a JDBC driver from the AS/400 Toolbox for Java. This driver allows a client to access a DB2/400 database on a properly configured iSeries or AS/400 host system.

If you need a different JDBC driver:

Registering a JDBC driver

Registering a JDBC driver provides Z and I Emulator for Web with the information it needs to manage the driver, including:

The AS/400 Toolbox for Java driver does not need to be registered, because it is included with Z and I Emulator for Web.

The Z and I Emulator for Web administrator or Database On-Demand administrator can register a JDBC driver at the following locations in the user interface:

The Z and I Emulator for Web user or Database On-Demand user can register a JDBC driver at the following locations in the user interface:

Deploying a JDBC driver

The fact that a driver has been registered (and therefore appears in a list of registered drivers) does not mean that the driver has also been deployed to the user's workstation.

Deploying a driver means copying the driver (which may consist of one file or a group of files) to the user's workstation, in a directory where the Z and I Emulator for Web or Database On-Demand client code can access it.

One way to make the driver accessible to Z and I Emulator for Web or Database On-Demand for Java 2 is to copy the JDBC driver archive file (or files, if there are multiple archive files in the driver) to the lib\ext directory of the Java 2 plug-in.