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 » OPTIONS for OPEN, PUT and GET and Blocking questions

Post new topic  Reply to topic
 OPTIONS for OPEN, PUT and GET and Blocking questions « View previous topic :: View next topic » 
Author Message
musiccs
PostPosted: Wed Apr 14, 2004 11:45 am    Post subject: OPTIONS for OPEN, PUT and GET and Blocking questions Reply with quote

Newbie

Joined: 31 Mar 2004
Posts: 5
Location: Brentwood

I would like to know how to set the open, get, or put options so that the program waits for a message to be on the queue before returning with a message. Also, do I have to set up blocking when I put on the MQ from different sources, or is that handled automatically?
Thanks,
Tony
Back to top
View user's profile Send private message
mqonnet
PostPosted: Wed Apr 14, 2004 11:52 am    Post subject: Reply with quote

Grand Master

Joined: 18 Feb 2002
Posts: 1114
Location: Boston, Ma, Usa.

"I would like to know how to set the open, get, or put options so that the program waits for a message to be on the queue before returning with a message."
-set the gmo.WaitInterval with the required time. and set MQGMO_WAIT in gmo.Options. Documented in the programming guide/reference.

"Also, do I have to set up blocking when I put on the MQ from different sources, or is that handled automatically?
"
-Depends on your requirement. Multiple gets could be done on the same queue. If you dont want to do that, then open the queue exclusively so that you are the only getter of the messages. Also documented in the programming reference under mqopen function call.

Cheers
Kumar
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » OPTIONS for OPEN, PUT and GET and Blocking questions
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.