Back to Blog
Oracle ADF12 min read

Preparing Oracle ADF 12.2.1.4 Application on Glassfish 4.1

V

Vahram Manukyan

November 30, 2020

Introduction

This tutorial demonstrates how to deploy the ADF Essentials Summit Sample application on a Glassfish server using Docker containers. The guide covers database preparation, application server configuration, and deployment steps.

Prerequisites

  • Docker installation
  • Access to Oracle XE Docker images from the Oracle hub
  • Database Preparation

    Create the following folder structure:

  • summit-db/
  • - init/

    - scripts/

    - Dockerfile

    Download the Summit schema, copy database scripts, and create initialization files.

    Database Docker Configuration

    Build the Oracle XE container with the Summit schema initialized. The database container will handle schema creation automatically on first startup.

    Application Server Setup

    Download the required components:

  • ADF Essentials
  • Oracle Instant Client RPM
  • WebServices JAR file
  • Create the directory structure:

  • summit-server/
  • - webapps/

    - lib/

    Glassfish Configuration

    Configure Glassfish with ADF Essentials libraries and the Oracle database driver.

    Deployment Process

    Building Docker Images

    Build both the database and application server Docker images with the appropriate configurations.

    Starting Containers

    Start containers with specific network configurations to allow communication between the database and application server.

    Accessing the Application

    Once deployed, access the application at:

    http://localhost:8080/SummitADF-ViewController-context-root/faces/index.jsf

    Resources

  • Oracle JDeveloper samples
  • Oracle ADF Essentials downloads
  • Official Oracle administration documentation
  • Conclusion

    Using Docker containers simplifies the deployment of ADF applications on Glassfish by providing consistent, reproducible environments for development and testing.