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 » MQINQ fails with 2068

Post new topic  Reply to topic
 MQINQ fails with 2068 « View previous topic :: View next topic » 
Author Message
ratheesh
PostPosted: Wed Jan 24, 2007 10:38 pm    Post subject: MQINQ fails with 2068 Reply with quote

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
View user's profile Send private message
Mr Butcher
PostPosted: Wed Jan 24, 2007 11:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Thu Jan 25, 2007 12:11 am    Post subject: Reply with quote

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
View user's profile Send private message
ratheesh
PostPosted: Thu Jan 25, 2007 12:16 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Thu Jan 25, 2007 12:23 am    Post subject: Reply with quote

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
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 » MQINQ fails with 2068
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.