The below sections describe how you can change the endpoint reference of a deployed proxy service without changing its own configuration. For example, in this scenario, you have two endpoints to manage two environments (i.e., Dev and QA). The endpoint URLs for the services hosted in the Dev and QA environments respectively are as follows:
- Dev environment: http://localhost:8280/services/echo
- QA environment: http://localhost:8281/services/echo
See the topics given below for instructions.
Table of Contents | ||
---|---|---|
|
Creating the endpoint reference projects
Follow the steps below to create two ESB Config Projects containing the two endpoint values for the Dev and QA environments.
Open WSO2 Integration Studio and click Miscelleneous → Create New Config Project in the Getting Started tab.
In the New ESB Project dialog that opens, select New ESB Config Project and click Next.
Enter HelloWorldDevResources as the project name and click Finish.
- Right-click the HelloWorldResources project in the Project Explorer and go toNew -> Endpoint.
Select Create a New Endpoint and click Next.
Fill in the information as in the table below and click Finish.
Field Value Endpoint Name HelloWorldEP Endpoint Type Address Endpoint Address http://localhost:8280/services/echo - Similarly, to create resources for the QA environment, create another ESB Config project named HelloWorldQAResources and create an endpoint named HelloWorldEP. Provide the following endpoint address:
http://localhost:8280/services/echo
Creating the proxy service
In this section, you will create an ESB Solutions Project containing the Proxy Service configuration.
...