Changing the Base Port Setting
To change the base port assignment for a Broker Server, you must stop the Broker Server and change the port setting using the server_config utility.
Do not use the port on which Broker Monitor resides. The default port for Broker Monitor is 6850.
Note:
On Windows, the port number is part of the service name. When you change the port number, the server_config utility attempts to update the service name. However, this action is not always successful. To switch the base port on a Windows machine, consider creating a new
Broker Server with the new port number and then copying the data files (excluding awbroker.cfg) from the old
Broker Server to the new
Broker Server. For information about copying data files from one
Broker Server to another, see
Replicating Broker Metadata.
To change the base port assignment of a
Broker Server1. Stop the Broker Server.
2. On the machine where Broker Server is installed, navigate to the following directory:
webMethods Broker_directory/bin
3. Run the following command:
server_config update dataDir -p portNum
Where... | Specifies... |
dataDir | The fully-qualified location of the Broker Server's data directory. Enclose the entire directory name in quotes if any portion of the name contains a space. |
portNum | The new base port number. |
For example, on Windows you could use the following:
server_config update "c:\SoftwareAG\Broker\data\awbrokersversion\My Broker"
-p 6800
On UNIX, you could use the following:
server_config update /var/opt/webmethods/awbrokersversion/myBroker -p 6845
4. Restart the Broker Server in port 6800 using the following command:
broker_start localhost:6800