|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Using alias queues |
« View previous topic :: View next topic » |
Author |
Message
|
tschwab |
Posted: Thu May 02, 2002 9:25 am Post subject: |
|
|
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 |
|
 |
bduncan |
Posted: Thu May 02, 2002 9:46 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|