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 » Reading All available Messages

Post new topic  Reply to topic
 Reading All available Messages « View previous topic :: View next topic » 
Author Message
rajaramanl
PostPosted: Wed Mar 05, 2003 2:20 am    Post subject: Reading All available Messages Reply with quote

Novice

Joined: 07 Apr 2002
Posts: 13
Location: India

Hi,
I have a VB application which connects to Actual Queue puts two different messages and disconnects from Queue. Then it connects to Reply Queue reads all available messages. Even though two reply messages are there, it reads only reply for the first request. To get the other reply i need to disconnect from the queue, again connect and read the reply message.

While reading i set the MessageOption as
'MQGMO_WAIT + MQGMO_SYNC + MQGMO_LOGICAL_ORDER + MQGMO_CONVERT + MQGMO_FAIL_IF_QUIESCING'

Is there anything wrong in the option i had set. Or do i need to set any option while Message PUT.

Anybody please give me a solution.

thanks in advance
rajaram
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
emiranda
PostPosted: Wed Mar 05, 2003 4:47 am    Post subject: Reply with quote

Disciple

Joined: 21 Nov 2002
Posts: 196
Location: Dublin, Ireland

Hi,

Did you tried to increase the WaitInterval option?
_________________
Warm Regards,
EM
Back to top
View user's profile Send private message
clindsey
PostPosted: Wed Mar 05, 2003 7:55 am    Post subject: Reply with quote

Knight

Joined: 12 Jul 2002
Posts: 586
Location: Dallas, Tx

Try setting get message options

gmo.Version = MQGMO_VERSION_2
gmo.MatchOptions = MQMO_NONE

Otherwise you have to reset the correlation id and message id after every get. Currently you get a message and your msgid and correlid are set to the value of this message. These values are then used for matching on the next get and there are no matches.

Charlie
Back to top
View user's profile Send private message
rajaramanl
PostPosted: Sat Mar 08, 2003 10:19 pm    Post subject: Reading All available Messages Reply with quote

Novice

Joined: 07 Apr 2002
Posts: 13
Location: India

Hi,
I tried increasing the WaitInteral also. It didn't work. Befire start reading the reply messages, I see the reply messages lying in Queue, after i place two individual request.

And i can't set MatchOptions to MQGMO_NONE as i need to read reply messages for a particular Correlation Id's.

Is this anything to do with MessageOptions. Can anybody tell what these two option does.
MQGMO_SYNC
MQGMO_LOGICAL_ORDER

thanks,
rajaram
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Reading All available Messages
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.