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 » Matching By Priority

Post new topic  Reply to topic
 Matching By Priority « View previous topic :: View next topic » 
Author Message
Gulmohar
PostPosted: Fri Jun 29, 2001 10:36 am    Post subject: Reply with quote

Newbie

Joined: 28 Jun 2001
Posts: 1

Hi
We are sending a request message to an application and the application is sending us back 4-5 messages for that request. Within those 4-5 messages, there would be one message with higher priority which will contain the information about those other messages. We want to retrieve this message first. Is there any API directly supporting this?
Back to top
View user's profile Send private message
bduncan
PostPosted: Fri Jun 29, 2001 4:10 pm    Post subject: Reply with quote

Padawan

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

Why not just batch the 4-5 reply messages as a GROUP, and give your application that is wating for the replies the get message option: ALL_MSGS_AVAILABLE. This way, the MQGET will return nothing until all messages in the group are available, and if you combine with the parameter to always remove grouped messages in order (assuming the first message you created contains the information about the others) then you will remove the first message in the group and it will contain the information about the others that subsequent MQGETs will remove. In fact, if you use message grouping, you might be able to do away with the informational message altogether, assuming it just contains something like the CORRELIDs of the other messages. If you still feel you want to use priorities, you need to keep in mind that message priority is useless if you are matching against some message property. In other words, if you have 100 messages on a queue, 99 of which have a higher priority than the 100th, but you do an MQGET matching against the correlid of the 100th message, it will return to you the 100th message even though it is of a lower priority. The only time that priorities affect things is when the message channel agent is dispatching messages across a sender channel (it dispatches those messages with a higher priority first), and when you are doing MQGETs without any matching parameters (it will return messages of higher priority first - and when there are multiple messages with equal priority, it uses FIFO)....


_________________
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 » Matching By Priority
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.