Defining a server-connection channel on the server
Start MQSC if necessary, then define the server-connection channel.
Procedure
- Optional: If your server platform is not z/OS, first create and start a queue manager and then start MQSC commands.
- Create a queue manager, called QM1 for example:
crtmqm QM1- Start the queue manager:
strmqm QM1- Start MQSC commands:
runmqsc QM1
- Define a channel with your chosen name and a channel type of server-connection.
DEFINE CHANNEL(CHAN1) CHLTYPE(SVRCONN) TRPTYPE(TCP) + DESCR('Server-connection to Client_1')This channel definition is associated with the queue manager running on the server.- Use the following command to allow the inbound connect access to your queue manager:
SET CHLAUTH(CHAN1) TYPE(ADDRESSMAP) ADDRESS('IP address') MCAUSER('userid')
- Where SET CHLAUTH uses the name of the channel defined in the previous step.
- Where 'IP address' is the IP address of the client.
- Where 'userid' is the ID we want to provide to the channel for access control to the target queues. This field is case-sensitive.
We can choose to identify your inbound connection using a number of different attributes. The example uses IP address. Alternative attributes include client user ID and TLS Subject Distinguished Name. For more information, see Channel authentication records
Parent topic: Create server-connection and client-connection definitions on different platforms