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>/appdev/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.
No comments:
Post a Comment