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 » Select a specific message from a list of message

Post new topic  Reply to topic
 Select a specific message from a list of message « View previous topic :: View next topic » 
Author Message
sumit.wadhwa21
PostPosted: Thu Oct 19, 2006 1:08 am    Post subject: Select a specific message from a list of message Reply with quote

Newbie

Joined: 10 Oct 2006
Posts: 7

I got 10 messages in a queue. Now i want to retrieve only a specific message say message no 6. Is it possible to achieve this functionality or it is first in first out. Please comment. I am retrieving and posting message through .net code

Thnx
Back to top
View user's profile Send private message
zpat
PostPosted: Thu Oct 19, 2006 1:12 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

You can't select it directly by position, this would imply application awareness of the queue depth and that is not a good MQ design.

You can browse the queue and then get a message under the browse cursor if you want to remove it.
Back to top
View user's profile Send private message
sumit.wadhwa21
PostPosted: Thu Oct 19, 2006 1:17 am    Post subject: Reply with quote

Newbie

Joined: 10 Oct 2006
Posts: 7

I can browse the message via broker explorer. But i want to use .net code to retrieve message. By pssing message id or corellation id can i choose a specified message from a list of message?
Back to top
View user's profile Send private message
zpat
PostPosted: Thu Oct 19, 2006 1:27 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

All MQ utilities are simply using the MQI, you have to work out how to use it in a similar way from your program. eg

MQCONN
MQOPEN MQOO_BROWSE
MQGET MQGMO_BROWSE_NEXT+MQGMO_LOGICAL_ORDER
MQGET MQGMO_BROWSE_NEXT+MQGMO_LOGICAL_ORDER
MQGET MQGMO_BROWSE_NEXT+MQGMO_LOGICAL_ORDER
MQGET MQGMO_MSG_UNDER_CURSOR+MQGMO_CONVERT
MQCLOSE
MQDISC

This would remove the 3rd message from the queue. Read the Websphere MQ Application Programming Guide, there is a large section all about message order and retrieval.
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 » General Discussion » Select a specific message from a list of message
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.