Connection Options

Use the following information to enter data in the driver fields on the tab:

Field | Description
--- | ---

Database Driver

Specify the appropriate database driver:

- Driver Manager: specify this option to configure the driver class and URL used to connect to the database. In this case, you must configure the Driver Class and Driver URL fields.

- J2EE Data Source: specify this option to use a J2EE data source already configured on your target application server. In this case, you must configure the Datasource Name field.

Note: If you select J2EE Datasource, you must use external connection pooling. You cannot use internal connection pools with this Database Driver option (for more information, see "Configuring External Connection Pooling").

Driver Class Foot 1 | Configure this field when Database Driver is set to Driver Manager. Select from the menu of options. This menu includes all JDBC drivers in the TopLink classpath.
Driver URL Footref 1 | Configure this field when Database Driver is set to Driver Manager. Select from the menu of options relevant to the selected Driver Class, and edit the URL to suit your data source.

Data Source Name Foot 2

Configure this field when Database Driver is set to J2EE Datasource. Specify any valid JNDI name that identifies the J2EE data source preconfigured on your target application server (example: `jdbc/EmployeeDB`).

By convention, all such names should resolve to the JDBC subcontext (relative to the standard `java:comp/env` naming context that is the root of all provided resource factories).

Lookup Type Footref 2

Configure this field when Database Driver is set to J2EE Datasource. Specify the lookup method for determining the JNDI name:

- Composite Name

- Compound Name

- String

Footnote 1 Applicable only when Database Driver is set to Driver Manager.

Footnote 2 Applicable only when Database Driver is set to J2EE Datasource.

See Also

  Configuring Development and Deployment Logins