0

I have WSO2 Integration Studio API and I need that have a connection by two ports, the first one is through the default port ¨8290¨ and the second one I need that through ¨8291¨

I tried to configure the ¨deployment.toml¨file to change the default port to ¨8281¨ through the next sentence:

[server]
hostname = "localhost"
offset = 1

but with this sentence I only one can change the default port by 8281 and I need to have access through the 8281 and 8282 ports because I need access to two APIs in the same project at the same time, someone can explain to me how to make this, I will be grateful.

ycr
  • 12,828
  • 2
  • 25
  • 45

1 Answers1

0

Go to IntegrationStudio/runtime and make two copies of the folder microesb. Lets call these two directories microesb1 and microesb2. Now go to microesb1/bin directory and run sh micro-integrator.sh this will start a server on the default port 8290.

Then open microesb2/conf/deployment.toml and add the following.

[server]
hostname = "localhost"
offset  = 1

Now go to microesb2/bin directory and run sh micro-integrator.sh this will start a server on the default port 8291

ycr
  • 12,828
  • 2
  • 25
  • 45
  • ok i sucesul, but now how can make a port redirection to one context and than other port redirect to another context? i have a api that show ¨Hello World¨ trought an context named /HelloWorld", is possible have another context for access he trought he and the same time by port 8291? –  May 31 '23 at 05:30
  • 1
    thanks for help me, thanks to your indications can redirection my service to two or more ports, thanks¡ –  Jun 06 '23 at 06:50