|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
setModelQueueName Method not available in IBMMQDotnetClient |
« View previous topic :: View next topic » |
Author |
Message
|
ekoks |
Posted: Fri Sep 23, 2022 1:55 am Post subject: setModelQueueName Method not available in IBMMQDotnetClient |
|
|
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 |
|
 |
bruce2359 |
Posted: Fri Sep 23, 2022 4:44 am Post subject: Re: setModelQueueName Method not available in IBMMQDotnetCli |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 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 |
|
 |
ekoks |
Posted: Wed Dec 07, 2022 1:23 pm Post subject: |
|
|
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 |
|
 |
fjb_saper |
Posted: Thu Dec 08, 2022 5:55 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 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 |
|
 |
RogerLacroix |
Posted: Wed Dec 14, 2022 12:12 pm Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 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 |
|
 |
RogerLacroix |
Posted: Wed Dec 14, 2022 12:15 pm Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 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 |
|
 |
bruce2359 |
Posted: Wed Dec 14, 2022 1:20 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 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 |
|
 |
|
|
 |
|
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
|
|
|
|