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 » need .net sample on getting particular message from queue

Post new topic  Reply to topic
 need .net sample on getting particular message from queue « View previous topic :: View next topic » 
Author Message
creativeone
PostPosted: Wed Jun 29, 2011 2:31 pm    Post subject: need .net sample on getting particular message from queue Reply with quote

Newbie

Joined: 29 Jun 2011
Posts: 2

Hi Guys,

I am using the .net api to connect to MQ 7. My requirements include browsing messages in a queue as well as going back and retrieving specific messages. From reading documentation it seems it should be possible using msgid and correlid or msgtoken. Can you please provide a sample c#/vb code on how to implement an mqget command to retrieve a specific message based on msgtoken or msgid? or if you can point me in the right direction. Thanks in advance for your help
Back to top
View user's profile Send private message
mvic
PostPosted: Wed Jun 29, 2011 3:16 pm    Post subject: Re: need .net sample on getting particular message from queu Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

There are already .NET samples in your MQ installation. Eg. nmqsget.cs.

To get you started, look at changing the value of the MatchOptions property in your MQGetMessageOptions object. Also setting the value(s) in the MsgId and CorrelId properties of the MQMessage you supply to the MQQueue.Get() call.

Search the MQ Information Center for terms like "match", "correlid", and so on. You might get a page that is oriented towards C programmers, but the principles are the same in all languages.
Back to top
View user's profile Send private message
creativeone
PostPosted: Thu Jun 30, 2011 10:28 am    Post subject: Reply with quote

Newbie

Joined: 29 Jun 2011
Posts: 2

Thanks. I'll look into it.
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 » IBM MQ API Support » need .net sample on getting particular message from queue
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.