Defining a client-connection channel using MQSERVER

 

This section applies only if you are not using Active Directory Services support. If you are using Active Directory Services support, we can omit the step in this section.

Create a client-connection channel by setting the MQSERVER environment variable.

Use the following command:

SET MQSERVER=CHANNEL1/TCP/server_address(port)
where:

server_address

is the TCP/IP hostname of the server.

(port)

is optional, and is the TCP/IP port number on which the server is listening. This is the port number specified in step 6 of Set up the WebSphere MQ server.

If you do not give a port number, WebSphere MQ uses the one specified in the queue manager configuration information. If no value is specified in the queue manager configuration information, WebSphere MQ uses the port number identified in the TCP/IP services file for the service name MQSeries. If this entry in the services file does not exist, a default value of 1414 is used.

It is important that the client and the server listener program both use the same port number.

 

Parent topic:

Set up the WebSphere MQ client