|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
OPTIONS for OPEN, PUT and GET and Blocking questions |
« View previous topic :: View next topic » |
Author |
Message
|
musiccs |
Posted: Wed Apr 14, 2004 11:45 am Post subject: OPTIONS for OPEN, PUT and GET and Blocking questions |
|
|
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 |
|
 |
mqonnet |
Posted: Wed Apr 14, 2004 11:52 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|