MQ ERROR Code 2035和2063

时间:2015-06-26 08:57:11

标签: ibm-mq

每当我们尝试通过.NET应用程序连接到websphere MQ服务器时,我们都会收到错误消息代码2063.也就是2035年。我们尝试使用XMS.NET和普通的旧amsmqdnet.dll来进行MQ服务器连接当我们从.net应用程序连接到MQ服务器时,/ authorization是否有效?请指导...

using System;
using IBM.XMS;
  XMSFactoryFactory factoryFactory;
                  IConnectionFactory cf;

                  // Get an instance of factory.
                  factoryFactory = XMSFactoryFactory.GetInstance(XMSC.CT_WMQ);

                  // Create WMQ Connection Factory.
                   cf = factoryFactory.CreateConnectionFactory();

                  // below properties r set
                   //cf.SetStringProperty(XMSC.WMQ_HOST_NAME, "hostname");
                 // cf.SetIntProperty(XMSC.WMQ_PORT,0);
                //  cf.SetStringProperty(XMSC.WMQ_CHANNEL, "channel");
                  //cf.SetIntProperty(XMSC.WMQ_CONNECTION_MODE, XMSC.WMQ_CM_CLIENT);
                //  cf.SetStringProperty(XMSC.WMQ_QUEUE_MANAGER, "queuemanager name");
                 // cf.SetStringProperty(XMSC.WMQ_QUEUE_NAME, "queuename");

                  // Create connection.
                  var mqConnection = cf.CreateConnection();

0 个答案:

没有答案