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 » General Discussion » Java GET from ALIAS Queue fails

Post new topic  Reply to topic
 Java GET from ALIAS Queue fails « View previous topic :: View next topic » 
Author Message
tekgirl
PostPosted: Tue Mar 29, 2005 2:16 pm    Post subject: Java GET from ALIAS Queue fails Reply with quote

Newbie

Joined: 02 Sep 2004
Posts: 8
Location: Madison, Wisconsin

We have started using Alias Queues here and our Java Developers have run across a problem when trying to issue a "GET" from the alias queue. I know it should work, otherwise defeats the purpose of aliasing. Also it works for me when I use the C sample amqsget.

I believe they get a 2068 reason code. I think they are specifying options that are not valid/compatible with an Alias queue........I don't know the programming side.

Any help, suggestions?
Back to top
View user's profile Send private message
csmith28
PostPosted: Tue Mar 29, 2005 2:36 pm    Post subject: Reply with quote

Grand Master

Joined: 15 Jul 2003
Posts: 1196
Location: Arizona

Well if the amqsget tool works ok then it has to be something wrong with their code.

Believe it or not.

Here's what the WMQ Messages Guide has to say about Reason Code 2068:

Quote:
2068 X’0814’ MQRC_SELECTOR_NOT_FOR_TYPE
On the MQINQ call, one or more selectors in the Selectors array is not applicable to the type
of the queue whose attributes are being inquired.
This reason also occurs when the queue is a cluster queue that resolved to a remote instance
of the queue. In this case only a subset of the attributes that are valid for local queues can be
inquired.
The call completes with MQCC_WARNING, with the attribute values for the inapplicable
selectors set as follows:
v For integer attributes, the corresponding elements of IntAttrs are set to
MQIAV_NOT_APPLICABLE.
v For character attributes, the appropriate parts of the CharAttrs string are set to a character
string consisting entirely of asterisks (*).
Corrective action: Verify that the selector specified is the one that was intended.
If the queue is a cluster queue, specifying one of the MQOO_BROWSE, MQOO_INPUT_*, or
MQOO_SET options in addition to MQOO_INQUIRE forces the queue to resolve to the local
instance of the queue. However, if there is no local instance of the queue the MQOPEN call
fails.


I didn't see an entry for 2068 in the Hitchhikers Guide.
_________________
Yes, I am an agent of Satan but my duties are largely ceremonial.
Back to top
View user's profile Send private message
vennela
PostPosted: Tue Mar 29, 2005 2:54 pm    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Post the options that are being specified
Back to top
View user's profile Send private message Send e-mail Visit poster's website
fjb_saper
PostPosted: Tue Mar 29, 2005 6:13 pm    Post subject: Reply with quote

Grand High Poobah

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

I think they are doing the beginners error and trying to get the queue depth.
You can only enquire queue depth on local queues.
You should NEVER enquire about queue depth but always do your get in a loop until you get the queue empty exception or the message is null(JMS).

Enjoy
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » Java GET from ALIAS Queue fails
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.