Error connecting to a remote messaging queue manager usingamqmdnet.dll

  • Thread starter Thread starter mirin
  • Start date Start date
M

mirin

Hi,

I'm trying to connect to a messaging queue manager in a remote server
from a .NET client application. Am successful in connecting to the
same queue manager using IBM.XMS.dll but when I try to connect using
amqmdnet.dll (which I need to do for certain deployment issues), I get
the error message "MQRC_Q_MGR_NOT_AVAILABLE".

Any advice is much appreciated.

C# code snippets:

using System;
using System.Collections;
using IBM.WMQ;

....
try
{
envr = new Hashtable();

envr.Add(MQC.CHANNEL_PROPERTY, strChannelName);
envr.Add(MQC.PORT_PROPERTY, intPort);
envr.Add(MQC.HOST_NAME_PROPERTY, strHostname);
envr.Add(MQC.USER_ID_PROPERTY, strUserid);
envr.Add(MQC.TRANSPORT_PROPERTY, MQC.TRANSPORT_MQSERIES);

queueManager = new MQQueueManager(strQueueManagerName, envr);
}
....


Many Thanks,
mirin
 
Found the problem!

Property MQC.TRANSPORT_PROPERTY should be
MQC.TRANSPORT_MQSERIES_MANAGED
 
Back
Top