|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQAI: rc=2067, MQRC_SELECTOR_ERROR |
« View previous topic :: View next topic » |
Author |
Message
|
dpchiesa |
Posted: Tue Jun 04, 2002 6:38 pm Post subject: MQAI: rc=2067, MQRC_SELECTOR_ERROR |
|
|
 Apprentice
Joined: 29 May 2002 Posts: 46
|
I am having some limited success with MQAI in VB.NET. I can retrieve Q_NAME, CURRENT_DEPTH, and MAX_DEPTH for all local queues, but cannot retrieve HIGH_DEPTH or MSG_DEQ_COUNT. I get cc=2, rc=3008 (COMMAND_FAILED). The embedded error rc is 2067 (MQRC_SELECTOR_ERROR).
Any ideas? I have tried to RTFM but no joy. The examples I've seen never show inquiring more than 1 or 2 queue attributes. Is there a limit on the number of attrs one can request in a responseBag with MQAI? Is this the security problem others have described in their posts about MQAI ?
maybe relevant: when I run MQSeries Explorer, I can see the details of only 3 queues: default, postcard, and clq_default_hostname. But I see all the attributes (creation date, high+low depth limit+event, etc etc). When I run my MQAI test, if I request only the attributes Q_NAME, CURRENT_DEPTH, and MAX_DEPTH, then I get the results for every local queue. If I add any additional attributes, then I get the 3008 and 2067 errors.
Awaiting enlightenment,
-D _________________ -dpchiesa |
|
Back to top |
|
 |
dpchiesa |
Posted: Thu Jun 06, 2002 12:12 pm Post subject: Hmmmm |
|
|
 Apprentice
Joined: 29 May 2002 Posts: 46
|
I think I found some answers here.
I stopped querying for HIGH_Q_DEPTH and MSG_DEQ_COUNT and so forth. None of the MQAI examples I saw had included these params, and the ONLY time I saw those params was in other (non MQAI) calls.
So, I tried querying different items and had some success. I have queried:
Creation date/time
Alteration date/time
max q depth
current q depth
All of this works just fine. I think that the 2067 (SELECTOR_ERROR) is indicating that I am querying for an attribute that is not queryable.
If someone could confirm this I'd appreciate it. OR better, if someone could point me to the list of opcodes that are acceptable as queryable attributes, that would be great.
You can see what I have done so far at
http://hosting.msugs.ch/cheeso9/dl/amqsailq.NET.zip
This is a Visual Studio .NET solution - it is working in Visual Studio .NET v2002 (the released version). You specify a Queue Mgr name, and it queries MQ using MQAI and displays the results in a Windows.Forms datagrid.
-D _________________ -dpchiesa |
|
Back to top |
|
 |
bower5932 |
Posted: Wed Jun 12, 2002 1:03 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
You might want to take a look at the Programmable System Management manual (http://www-3.ibm.com/software/ts/mqseries/library/manualsa/index.html). Under the Inquire Queue section, it gives a list of what can be inquired. This is probably the list that you are looking for. |
|
Back to top |
|
 |
dpchiesa |
Posted: Fri Jun 14, 2002 10:26 am Post subject: Programmable System Mgmt |
|
|
 Apprentice
Joined: 29 May 2002 Posts: 46
|
Perfect! Thank-you.
The URL I found is:
ftp://ftp.software.ibm.com/software/ts/mqseries/library/books/csqzai03.pdf
And yes, it lists the items that are inquir-able.
They are:
Q_NAME, Q_TYPE, Q_DESC, INHIBIT_PUT, DEF_PRIORITY, DEF_PERSISTENCE
on distributed platforms:
ALTERATION_DATE, ALTERATION_TIME
and there are a bunch of others, depending on the queue type (local, alias, model, etc).
cheers!
-D _________________ -dpchiesa |
|
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
|
|
|
|