APEXblog.nl - Tips and Tricks

About This Blog:
I (Richard Weug) started this blog primary for myself to save all kinds of Apex tips and tricks in one place. To use it as a place to write down how I used some coding in my own projects, but also to copy and paste all kinds of articles I find on the Internet. (So I never have to wonder on what website did I read about??? When I see something interesting I collect the content so I have my own archive/knowlegde base.

View my profile on LinkedIn

 

Installation & Configuration

Print
15
Aug

Multiple APEX listeners, one Application Server using Oracle REST Data Services (ORDS)

Written by Richard Weug. Posted in Installation

Oracle REST Data Services (ORDS) gives us the capability us to deploy multiple versions of the APEX listeners to a single Glassfish instance.  This is great for centralizing resources on a single server in our non-production environments.  This short post will show you how quick and painless it is to setup.

Setting up 2 instances (apptest & appdev)


Using ords.2.0.8.163.10.40.zip
Set up 2 directories and unzip into both directories
for example:

    <some path>/apptest
    <some path>/appdev

Rename the ords.war files in both
for example:

    <some path>/apptest/ords_apptest.war
    <some path>/apptest/ords_appdev.war

Run the war config process on each war using your specific setup info for each app

    cd <some path>/apptest
    java -jar ords_apptest.war

note: we use app and date specific configurations file locations
<some path>/apptest/ords_apptest_<today's date>_cfg

    cd <some path>/appdev
    java -jar ords_appdev.war

note: we use app and date specific configurations file locations
<some path>/appdev/ords_appdev_<today's date>_cfg
Configure the "Listener Administrator" user with your specific setup info for each app

    cd <some path>/apptest
    java -jar ords_apptest.war user username "Listener Administrator"
    enter password
    confirm password

    cd <some path>/appdev
    java -jar ords_appdev.war user username "Listener Administrator"
    enter password
    confirm password

Configure images war files with

    cd <some path>/apptest
    java -jar ords_apptest.war static --context-path /i_apptest <glassfish install path>/glassfish/domains/domain1/docroot/i_apptest

    cd <some path>/appdev
    java -jar ords_appdev.war static --context-path /i_appdev <glassfish install path>/glassfish/domains/domain1/docroot/i_appdev

Copy images from each APEX instance to glassfish as needed

    <glassfish install path>/glassfish/domains/domain1/docroot/i_apptest
    <glassfish install path>/glassfish/domains/domain1/docroot/i_appdev

Deploy war files to glassfish

    ords_apptest.war
    i_apptest.war
    ords_appdev.war
    i_appdev.war

Note: if you have already chosen /i/ as the images context during setup (instead of specifying /i_apptest/ or /i_appdev/), run the reset_image_prefix.sql in <apex installation folder>/utilities and specify the correct context for your image files. This might take some time to finish so be patient.
Conclusion
There you have it, a down and dirty, quick and easy setup of multiple listeners for your different APEX installations on a single Glassfish install.
Original article written by : Donald Clarke