All Downloads are FREE. Search and download functionalities are using the official Maven repository.

en.help.task-setdbaccess.html Maven / Gradle / Ivy

There is a newer version: 8.0.0-JDK17-M7
Show newest version


To Set Up Database Access

To store, organize, and retrieve data, most applications use relational databases.

GlassFish Server includes a copy of the Java DB database and is preconfigured with the ability to access this database.

  1. Install a supported database product.

    For a list of supported databases, see Eclipse GlassFish Release Notes.

  2. Install a driver supporting the JDBC API (JDBC driver) for the database.

    Ensure that the driver you want to use to create database connections is installed on all servers on which you want to deploy the data source.

  3. Ensure that the driver's JAR file is accessible to the domain's server instance.

    See To Integrate a JDBC Driver.

  4. Create the database.

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

  5. Create a connection pool for the database.

    See To Create a JDBC Connection Pool.

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

    See To Create a JDBC Resource.

See Also
Copyright © 2005, 2017, Oracle and/or its affiliates. All rights reserved. Legal Notices




© 2015 - 2024 Weber Informatics LLC | Privacy Policy