Error connecting to a remote messaging queue manager usingamqmdnet.dll

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
 
M

mirin

Found the problem!

Property MQC.TRANSPORT_PROPERTY should be
MQC.TRANSPORT_MQSERIES_MANAGED
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top