ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » MQ Listener CCDT - Error 2035

Post new topic  Reply to topic
 MQ Listener CCDT - Error 2035 « View previous topic :: View next topic » 
Author Message
EliranGueta
PostPosted: Thu Feb 18, 2021 6:03 am    Post subject: MQ Listener CCDT - Error 2035 Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Thu Feb 18, 2021 8:23 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » MQ Listener CCDT - Error 2035
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.