|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQ Listener CCDT - Error 2035 |
« View previous topic :: View next topic » |
Author |
Message
|
EliranGueta |
Posted: Thu Feb 18, 2021 6:03 am Post subject: MQ Listener CCDT - Error 2035 |
|
|
Newbie
Joined: 18 Feb 2021 Posts: 1
|
Hello,
I would appreciate your help.
I work in CCDT configuration, version 9.2 of IBM MQ.
I tried the following code and it works fine :
Code: |
Environment.SetEnvironmentVariable("MQCHLLIB", AppConfig.MQCHLLIB);
Environment.SetEnvironmentVariable("MQCHLTAB", AppConfig.MQCHLTAB);
Environment.SetEnvironmentVariable("MQSSLKEYR", AppConfig.MQSSLKEYR);
MQQueueManager _queueManager = new MQQueueManager("MQD0");
var msg = _queueManager?.GetMessageFromQueue("D.FM.CUSTOMER.SMS");
|
The thing is I want to work with listener, but get error:
Code: |
Environment.SetEnvironmentVariable("MQCHLLIB", AppConfig.MQCHLLIB);
Environment.SetEnvironmentVariable("MQCHLTAB", AppConfig.MQCHLTAB);
Environment.SetEnvironmentVariable("MQSSLKEYR", AppConfig.MQSSLKEYR);
XMSFactoryFactory factory = XMSFactoryFactory.GetInstance(XMSC.CT_WMQ);
IConnectionFactory connFactory = factory.CreateConnectionFactory();
connFactory.SetIntProperty(XMSC.WMQ_CONNECTION_MODE, XMSC.WMQ_CM_CLIENT);
connFactory.SetIntProperty(XMSC.WMQ_BROKER_VERSION, XMSC.WMQ_BROKER_V1);
connFactory.SetStringProperty(XMSC.WMQ_QUEUE_MANAGER, "MQD0");
IConnection conn = connFactory.CreateConnection();
ISession sess = conn.CreateSession(false, AcknowledgeMode.AutoAcknowledge);
IDestination dest = sess.CreateQueue("D.FM.CUSTOMER.SMS");
IMessageConsumer consumer = sess.CreateConsumer(dest); // ******** get the error
MessageListener ml = new MessageListener(NotifyMQService);
consumer.MessageListener = ml;
conn.Start();
|
ERROR: ReasonCode = 2035, Message: Failed to open MQ queue D.FM.CUSTOMER.SMS.
XMS attempted to perform an MQOPEN, but IBM MQ reported an error.
Use the linked exception to determine the cause of this error. Check that the specified queue and queue manager are defined correctly.
I searched the internet but found no answer
Please help !
Regards,
Eliran |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Feb 18, 2021 8:23 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
2035 is a lack of authorization. Check in the qmgr logs what authorization you are missing. Using XMS / JMS you should have inq in your authorizations...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|