Lee
Lee

Reputation: 791

WebSphere MQ - Connecting and sending messages to a remote queue

I have a .net mq client on my computer and mq websphere queue manager on a remote server.

I get this error: MQRC_HOST_NOT_AVAILABLE

I get:

Access not permitted. You are not authorized to perform this operation. (AMQ4036) Access not permitted. You are not authorized to perform this operation. (AMQ4036)

==============

How should I configure the server? channel settings? connection settings? I am able to connect locally when the queue manager is on my computer but when its on a remote computer it fails because authentication. I know that I should add my user to the mqm group but the remote computer is NOT connected by domain.

thank you!

Upvotes: 1

Views: 11786

Answers (1)

Shashi
Shashi

Reputation: 15263

The reason for MQRC_HOST_NOT_AVAILABLE is because either the host name or the port number you are using are not correct.

To connect to a remote queue manager the following information is required: Queue manager name: Name (case sensitive) of the queue manager you want to connect to.

Channel name: Name of the channel - of type SVRCONN. You can use SYSTEM.DEF.SVRCONN but it is recommended you create your own SVRCONN channel

Connection name: hostname(port) - Hostname/IP address on which queue manager is running and port at which it is listening, for example remotehost(1414).

You can provide the above information in many ways: 1) Via MQSERVER environment variable. MQSERVER=<SVRCONN channel name>/TCP/<conn name>. For example MQSERVER=MY.SVRCONN.CHN/TCP/remotehost(1414). 2) Via your application code. See nmqput.cs MQ sample file for more details. 3) Channel definition table.

Upvotes: 3

Related Questions