FreeKB - Create WebSphere MQ Server Connection Channel
Create WebSphere MQ Server Connection Channel

Home > Search


If you are not sure what an MQ Server Connection Channel is, check out our Getting Started tutorial.

 


Linux command line

Determine if port 1414 is available. If 1414 is being used, determine if port 1415 is available, then 1416, until you local an available port.

~]# netstat -an | grep 1414

 

Switch to the mqm user.

~]# su - mqm

 

Start the MQSC utility for the queue manager that you want to set up the server connection channel on. In this example, MANAGER01 is the name of the queue manager.

~]# /opt/mqm/bin/runmqsc MANAGER01

 

Create a server connection channel. In this example, a server connection channel named CHANNEL01 is created.

define channel(CHANNEL01) chltype(SVRCONN) trptype(TCP)

 

Display the channel.

display channel(CHANNEL01)

 

Define a new listener for the channel.

define listener(LISTENER01) trptype(TCP) control(QMGR) port(1414)

 

Start the listener.

start listener(LISTENER01)

 

Exit the MQSC utility.

end

 

Return to your user account.

~]# exit

 

You almost always also want to assign one or more users that have access to the channel so that you don't get error 2035 MQRC_NOT_AUTHORIZED when attempting to connect to MQ.

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter in the box below so that we can be sure you are a human.




Comments