|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Reading All available Messages |
« View previous topic :: View next topic » |
Author |
Message
|
rajaramanl |
Posted: Wed Mar 05, 2003 2:20 am Post subject: Reading All available Messages |
|
|
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 |
|
 |
emiranda |
Posted: Wed Mar 05, 2003 4:47 am Post subject: |
|
|
 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 |
|
 |
clindsey |
Posted: Wed Mar 05, 2003 7:55 am Post subject: |
|
|
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 |
|
 |
rajaramanl |
Posted: Sat Mar 08, 2003 10:19 pm Post subject: Reading All available Messages |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|