|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQINQ fails with 2068 |
« View previous topic :: View next topic » |
Author |
Message
|
ratheesh |
Posted: Wed Jan 24, 2007 10:38 pm Post subject: MQINQ fails with 2068 |
|
|
Newbie
Joined: 23 Jan 2007 Posts: 2
|
When we try to access the properites of a alias Q using MQINQ , the program failes with 2068 error code.
We have only limited access to the MQ server. From the QType attribute only we could identify it was an alias Q.
Is there any restriction on base queues while accessing it trought alias queues ? |
|
Back to top |
|
 |
Mr Butcher |
Posted: Wed Jan 24, 2007 11:53 pm Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
For MQ, there is something that is called "documentation" which is in human-readable format. For this specific case, it tells you for the MQOPEN call (usage notes):
Quote: |
However, be aware that subsequent MQINQ or MQSET calls for the handle relate solely to the name that has been opened, and not to the object resulting after name resolution has occurred. For example, if the object opened is an alias, the attributes returned by the MQINQ call are the attributes of the alias, not the attributes of the base queue to which the alias resolves. Name resolution checking is still carried out, however, regardless of what is specified for the Options parameter on the corresponding MQOPEN. |
_________________ Regards, Butcher |
|
Back to top |
|
 |
Vitor |
Posted: Thu Jan 25, 2007 12:11 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
There's an additional clue, again in the "documentation" thing. It lists all the numbers and a short piece of text (again human readable for your convienience) about why the number comes out.
For example:
Code: |
2068 0x00000814 MQRC_SELECTOR_NOT_FOR_TYPE |
This may help lead you towards the cause of your problem. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
ratheesh |
Posted: Thu Jan 25, 2007 12:16 am Post subject: |
|
|
Newbie
Joined: 23 Jan 2007 Posts: 2
|
My doubt was "Is there any restriction on base queues while accessing it through alias queues ?" . And I found the topic in the human readable format.
Thanks for your help |
|
Back to top |
|
 |
Vitor |
Posted: Thu Jan 25, 2007 12:23 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
ratheesh wrote: |
My doubt was "Is there any restriction on base queues while accessing it through alias queues ?" |
Yes there is - the one in the documentation about name resolution. This is responsible, in turn, for the "you can't do that on this" reason code.
It all makes sense you see. MQ is not an MSoft product and therefore does what you'd expect.
Most of the time.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
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
|
|
|
|