ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

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

Release : 10.6

Component : CA Service Virtualization

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_Home\rules.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

For more information regarding the DevTest default ports, see https://techdocs.broadcom.com/us/en/ca-enterprise-software/devops/devtest-solutions/10-6/administering/general-administration/default-port-numbers.html

If by chance you also need to change the Broker DevConsole Server port, which is by default using port 2099, see https://knowledge.broadcom.com/external/article/7339/broker-unable-to-start-devconsole-serve.html