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 » Using alias queues

Post new topic  Reply to topic
 Using alias queues « View previous topic :: View next topic » 
Author Message
tschwab
PostPosted: Thu May 02, 2002 9:25 am    Post subject: Reply with quote

Newbie

Joined: 01 May 2002
Posts: 1

An application must read messages from a queue in the order described by the
following pseudo-code:

Code:


    for priority = lowest, highest {
      for age = oldest, youngest {
        read message
      }
    }


Would a set of alias queues, each corresponding to exactly one priority level from lowest to highest, and mapped to the same base queue, allow the application to implement the retrieval method described above? (The alias queues would also be used to put messages on the base queue.)


[ This Message was edited by: tschwab on 2002-05-02 10:25 ]

[ This Message was edited by: tschwab on 2002-05-02 10:26 ]

[ This Message was edited by: tschwab on 2002-05-02 10:29 ]

[ This Message was edited by: tschwab on 2002-05-02 10:30 ]

[ This Message was edited by: tschwab on 2002-05-02 10:32 ]
Back to top
View user's profile Send private message Send e-mail
bduncan
PostPosted: Thu May 02, 2002 9:46 am    Post subject: Reply with quote

Padawan

Joined: 11 Apr 2001
Posts: 1554
Location: Silicon Valley

You shouldn't need any alias queues to do this. We already know that the FIFO nature of queues guarantees we'll get oldest to youngest. As far as going through highest to lowest priority, this can be accomplished with the priority parameter in the messages themselves. Whatever applications are putting these messages can assign them a priority (a parameter in the MQMD). Now whatever queue they are going to be put in, you need to alter it such that its MsgDeliverySequence attribute equals MQMDS_PRIORITY (rather than the default, MQMDS_FIFO). This means that when a message with priority 2 arrives on the queue, the queue manager will place it in FRONT of any priority 1 messages, but still within FIFO order among any other priority 2 messages already on the queue. The MQ Application Programming Guide explains this in detail under Chapter 10. But here's a link to the specific info about priorities:
http://www-4.ibm.com/software/ts/mqseries/library/manualsa/csqzal05/csqzal0511.htm#HDRCSQ3J05


_________________
Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Using alias queues
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.