WSO2 product ESB, DSS and
BPS by default runs on 9443 port. It is fine if all servers are hosted in
different machine but if you have to run locally in one system then port number
change is required.
For this Example we are using
below versions:
- ESB: 4.0.3
- BPS: 2.1.2
- DSS: 2.5.1
To change port number in ESB go to wso2esb-4.0.3\repository\conf\carbon.xml under the “ServletTransports” tag you can change your setting.
<!-- Override the ports defined in
mgt-transports.xml -->
<ServletTransports>
<HTTPS>9443</HTTPS>
<HTTP>9773</HTTP>
</ServletTransports>
When you start the server
the port number shows 9443.
Now change port number in “carbon.xml”
file with new 9453 port number and again restart your server.
<!-- Override the ports
defined in mgt-transports.xml -->
<ServletTransports>
<HTTPS>9453</HTTPS>
<HTTP>9773</HTTP>
</ServletTransports>
You can see this in logs
as well.
Now if you open this highlighted
URL in browser the below screen will come and showing that ESB is now running
in 9453 port number.
Change
port in BPS:
Change in “carbon.xml” file, located in wso2bps-2.1.2\repository\conf\mgt-transports.xml
<!-- ${Ports.ServletTransports.HTTPS} is
defined in the Ports section of the carbon.xml -->
<parameter name="port">9453</parameter>
Change
port in DSS:
Change in “mgt-transports.xml” file located in wso2dataservices-2.5.1\repository\conf folder.
<transport
name="https" class="org.wso2.carbon.server.transports.http.HttpsTransport">
<parameter name="port">9453</parameter>
If there is any
requirement like you have to run above 3 servers at a time in your local
machine then port number should be different like 9443, 9453 and 9463 or any
port number you like.
No comments:
Post a Comment