Sun GlassFish Enterprise Server 2.1 Administration Guide

Setting Up Database Access

To set up a database access:

  1. Install a supported database product.

    For a list of database products supported by the Enterprise Server, see the Release Notes.

  2. Install a JDBC driver for the database product.

  3. Make the driver’s JAR file accessible to the domain’s server instance.

  4. Create the database.

    Usually, the application provider delivers scripts for creating and populating the database.

  5. Create a connection pool for the database.

  6. Create a JDBC resource that points to the connection pool.

Now to integrate the JDBC driver into an administrative domain, do either of the following:

  1. Make the driver accessible to the common class loader.

    Copy the driver’s JAR and ZIP files into the domain-dir/lib directory or copy its class files into the domain-dir/lib/ext directory.

  2. Restart the domain.

  3. Identify the fully-qualified path name for the driver's JAR file.