Salesforce

How to create multiple Data Object service applications and run them against the same PASOE instance with different database connections

« Go Back

Information

 
TitleHow to create multiple Data Object service applications and run them against the same PASOE instance with different database connections
URL NameHow-to-create-multiple-Data-Object-service-applications-and-run-them-against-the-same-PASOE-instance-with-different-database-connections
Article Number000180291
EnvironmentProduct: Progress
Version: 11.6.3, 11.7.7
OS: Windows
Question/Problem Description
How to create multiple Data Object service applications and run them against the same PASOE instance with different database connections

Here there is a requirement to run multiple Data Object web applications against the same PASOE instance, but with different database connections.  The PASOE instance must run the same application code.  

 
Steps to Reproduce
Clarifying Information
Error Message
Defect Number
Enhancement Number
Cause
Resolution
1.  Follow the steps in article What are the steps to create multiple Applications inside one PAS for OpenEdge instance?  to deploy the ABL Webapps to the ABL application groups using oepas40.  In this case the ABL applications are named MyApp1 and MyApp2, and the ABL Webapps are named OEABL1 and OEABL3:
 

User-added image

2.  Create two DataObject projects in Developer Studio (It's actually only necessary to generate a single ABL application and deploy it to both webapps, but for clarity this example uses Customer1 and Customer2).  Both projects define an ABL DataObject Service (Customer1Service, Customer2Service) using the attached customer.cls ABL source file.
3.  Deploy the Customer1Service to the MyApp1, OEABL1 Webapp as follows:
  • Copy the Customer1 DataObject project PASOEContent\static\Customer1Sevice.json catalogue file to the PASOE static folder (<work>\oepas40\webapps\OEABL1\static).
  • Copy the Customer1 DataObject project Appserver\Customer.r code file to the PASOE WEB-INF\openedge folder (<work>\oepas40\webapps\OEABL1\WEB-INF\openedge).
  • Using OpenEdge Management, deploy the PASOE service .paar file (<work>\oepas40\webapps\OEABL1\WEB-INF\adapters\rest\Customer1Service) to the OEABL1 webapp:
 
User-added image
 
4.  Repeated step 3 above for the Customer2Service and deploy it to MyApp2, OEABL3 Webapp.
5.  Use the following URL's in a web browser to return data from the respective services and their associated databases:

http://localhost:8840/OEABL1/rest/Customer1Service/Customer
http://localhost:8840/OEABL3/rest/Customer2Service/Customer
 
Workaround
Notes
Keyword Phrase
Last Modified Date7/28/2021 1:50 PM

Powered by