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 » IBM MQ API Support » setModelQueueName Method not available in IBMMQDotnetClient

Post new topic  Reply to topic
 setModelQueueName Method not available in IBMMQDotnetClient « View previous topic :: View next topic » 
Author Message
ekoks
PostPosted: Fri Sep 23, 2022 1:55 am    Post subject: setModelQueueName Method not available in IBMMQDotnetClient Reply with quote

Newbie

Joined: 22 Feb 2016
Posts: 5

Hello I'm using PCFMessageAgent class in C# to get List of queues on a queueManager, however our autorization restrictions do not allow me to use the SYSTEM.DEFAULT.MODEL.QUEUE for instantiating the PCFCommand, generating a temporary queue and receiving the answer.
Therefore, in earlier versions, there was a method called setModelQueueName which could be used to define the modelqueue to use.
However, this method is not available anymore in the version 9.2.5 of amqmdnetstd.dll
Is there an alternative for this?
Back to top
View user's profile Send private message
bruce2359
PostPosted: Fri Sep 23, 2022 4:44 am    Post subject: Re: setModelQueueName Method not available in IBMMQDotnetCli Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9394
Location: US: west coast, almost. Otherwise, enroute.

ekoks wrote:
our autorization restrictions do not allow me to use the SYSTEM.DEFAULT.MODEL.QUEUE

Are you saying that your app gets reason code 2035? What method throws the error? Post your MQ method code AND the complete error message here.

Ask your security team to grant access authority.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
ekoks
PostPosted: Wed Dec 07, 2022 1:23 pm    Post subject: Reply with quote

Newbie

Joined: 22 Feb 2016
Posts: 5

SourceCode:
Code:
                    PCFMessageAgent messageAgent = new PCFMessageAgent(mqQueueManager);

                    int[] attrs =
                    {
                        MQC.MQCA_Q_NAME,
                        MQC.MQCA_Q_DESC,
                        MQC.MQIA_CURRENT_Q_DEPTH,
                        MQC.MQIA_Q_TYPE,
                        MQC.MQCA_REMOTE_Q_MGR_NAME,
                        MQC.MQCA_REMOTE_Q_NAME
                    };
                    PCFMessage pcfMsg = new PCFMessage(MQC.MQCMD_INQUIRE_Q);
                    pcfMsg.AddParameter(MQC.MQCA_Q_NAME, "*");
                    pcfMsg.AddParameter(MQC.MQIA_Q_TYPE, MQC.MQQT_LOCAL);
                    pcfMsg.AddParameter(CMQCFC.MQIACF_Q_ATTRS, attrs);
                    PCFMessage[] pcfResponse = messageAgent.Send(pcfMsg);


Exception Message: MQRC_NOT_AUTHORIZED
Reason: 2035
Source: amqmdnetstd
Exception Stacktrace :
at IBM.WMQ.MQDestination.Open(MQObjectDescriptor& od)
at IBM.WMQ.MQQueue..ctor(MQQueueManager qMgr, String queueName, Int32 openOptions, String queueManagerName, String dynamicQueueName, String alternateUserId)
at IBM.WMQ.MQQueueManager.AccessQueue(String queueName, Int32 openOptions, String queueManagerName, String dynamicQueueName, String alternateUserId)
at IBM.WMQ.MQQueueManager.AccessQueue(String queueName, Int32 openOptions)
at IBM.WMQ.PCF.PCFAgent.Send(Int32 command, PCFParameter[] parameters)
at IBM.WMQ.PCF.PCFMessageAgent.Send(PCFMessage request, Boolean check)
at IBM.WMQ.PCF.PCFMessageAgent.Send(PCFMessage request)
at acmonitor.DataAccess.MQConnector.GetListOfQueues(LogUtility logger) in D:\GitLab\acmonitor\DataAccess\MQConnector.cs:line 101
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Dec 08, 2022 5:55 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

Make sure you use the one derived from com.ibm.mq.headers.pcf

Anything in com.ibm.mq.pcf is deprecated these days.

Hope it helps
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
RogerLacroix
PostPosted: Wed Dec 14, 2022 12:12 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3252
Location: London, ON Canada

Hi,

A year ago, I wrote a long blog posting here about the difference between:

- IBM MQ classes for .NET Framework is for .NET Framework
- IBM MQ classes for .NET Standard is for .NET Core (aka .NET)

So, it looks like IBM messed up and did not include setModelQueueName method in the IBM MQ classes for .NET Standard.

You can open an APAR with IBM but they may push it off and tell you to open an RFE. Personally, I think it should fall it APAR category. Also, shouldn't .NET methods begin with a capital? i.e. SetModelQueueName

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
RogerLacroix
PostPosted: Wed Dec 14, 2022 12:15 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3252
Location: London, ON Canada

Note to Admins. This is not a Java or Java/JMS question. Hence, it should be moved to "IBM MQ API Support" forum since their is not a "IBM MQ .NET Support" forum.

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
bruce2359
PostPosted: Wed Dec 14, 2022 1:20 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9394
Location: US: west coast, almost. Otherwise, enroute.

As you wish.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » setModelQueueName Method not available in IBMMQDotnetClient
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.