How to change the default port for Broker Service
search cancel

How to change the default port for Broker Service

book

Article ID: 212353

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

How do you change the default port of the Broker Service?

Environment

All supported DevTest releases.

Resolution

 

The Registry and Broker should be running on the same machine.

  1. Stop all the DevTest services.

  2. Clear the 'lisatmp' directory

  3. Clear the cached files in the vsBuilderSessions directory, the vseRecording directory, and the vseDeploy directory

  4. Open the DevTest_Home\bin\BrokerService.vmoptions file and add the following:
      -Dlisa.pathfinder.broker.port=<NewPort>

  5. Save the changes to the BrokerService.vmoptions file

  6. Open the DevTest_Home\local.properties file and add the following:
      lisa.pathfinder.broker.port=<NewPort>

  7. Save the changes to the local.properties file

  8. Open the DevTest_Homeules.xml file

  9. Locate:
    <console>
          <property comment="Broker url when run in embedded mode (i.e. in LW)" key="lisa.console.agent.broker.url" value="tcp://localhost:2009?daemon=true"/>
    </console>

  10. Change to:
    <console>
          <property comment="Broker url when run in embedded mode (i.e. in LW)" key="lisa.console.agent.broker.url" value="tcp://localhost:<NewPort>?daemon=true"/>
    </console>

  11. Save the changes to the rules.xml file

  12. Restart the DevTest services 

Note: Where <NewPort> is the port number you wish to change the Broker Service to listen on.


Additional Information

 Refer to documentation section "Default Port Numbers" of the release you are running for more information.

If by chance you also need to change the Broker Dev Console Server port, which is by default using port 2099, see Unable to start Dev Console Server - java.net.BindException: Address already in use for the Broker https://knowledge.broadcom.com/external/article/7339/broker-unable-to-start-devconsole-serve.html