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 IBM MQ Support » How to get the next record from queues in mq series

Post new topic  Reply to topic
 How to get the next record from queues in mq series « View previous topic :: View next topic » 
Author Message
VijayGoparaju`
PostPosted: Wed Aug 27, 2008 1:40 am    Post subject: How to get the next record from queues in mq series Reply with quote

Acolyte

Joined: 26 Aug 2008
Posts: 72

Hello,
This is vijay.I have a problem I want the next records to be processed one by one in "NEXT" Button click.I am always getting the First record.
This is my code:

queueManager = new MQQueueManager( strQueueManagerName );
queue = queueManager.AccessQueue( txtMervaQueueName.Text, MQC.MQOO_INQUIRE | MQC.MQOO_FAIL_IF_QUIESCING | MQC.MQOO_BROWSE );

//Create a New Message
queueMessage = new MQMessage();
queueMessage.Format = MQC.MQFMT_STRING;
queueGetMessageOptions = new MQGetMessageOptions();
queueGetMessageOptions.Options = MQC.MQGMO_BROWSE_NEXT ;
//Get the Message from the Queue
queue.Get(queueMessage, queueGetMessageOptions);
//Displaying the Relavent Data from the Queue into the "Get the Data from the Queue" Text Box
txtMervaGetData.Text=queueMessage.ReadString( queueMessage.MessageLength );

I have used this Code but I am not getting the next record.
Please help,
Thanks,
Vijay...
Back to top
View user's profile Send private message
dgolding
PostPosted: Wed Aug 27, 2008 2:04 am    Post subject: Reply with quote

Yatiri

Joined: 16 May 2001
Posts: 668
Location: Switzerland

hi Vijay

You've given us not one but TWO interesting challenges! Will you be giving mugs out too?

A better response would be to post on the General Websphere MQ Support forum

Have fun
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » How to get the next record from queues in mq series
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.