|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Reg: MQGET with Signal option - urgent. |
« View previous topic :: View next topic » |
Author |
Message
|
##mqguy## |
Posted: Wed Oct 22, 2003 8:10 pm Post subject: Reg: MQGET with Signal option - urgent. |
|
|
Novice
Joined: 22 Oct 2003 Posts: 10
|
The environment is MQSeries in OS/390. During an MQGET my MQGMO Options will have a MQGMO-SET-SIGNAL. So that whenever a message arrives in a queue my program gets a signal, that a message has arrived.Now, How can we check the status MQEC-MSG-ARRIVED ? What is the concept of ECB(Event control block) in this? How can we check whether an ECB is posted or not? What actually happens when a message arrives if we have specified MQGMO-SET-SIGNAL option.
Expecting reply as soon as possible |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Oct 23, 2003 4:15 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I think that a get with timeout in a loop, instead of using SET_SIGNAL is the preferred approach these days, even on 0S/390. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
##mqguy## |
Posted: Thu Oct 23, 2003 7:07 am Post subject: |
|
|
Novice
Joined: 22 Oct 2003 Posts: 10
|
Ok... To be more clear I'll put it in this way.Environment is cobol-os/390. My pgm, GETs the data from the queue.But the condition is, it can wait upto, say a maximum of 60 seconds. If a message arrives after 60 seconds, my application will return with some default message. Say if msg, arrives at 29th second, at that instant, it should pick the msg and return.No wait period. So... for this how to proceed ?? Whether SET-Signal is better ? If yes how to check the MESSAGE_ARRIVED condition.What is the purpose of ECB??? |
|
Back to top |
|
 |
zpat |
Posted: Thu Oct 23, 2003 7:11 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Please understand that a 60 second (for example) WAIT interval with GET means the MAX time that MQ will wait for a message.
As soon as one arrives it will end the wait (and after all the message might be on the queue already). It will end the wait after 60 seconds if no message has arrived in that time.
GET with WAIT 60 could mean a time between 0 and 60 seconds before a message is returned (or no msg if 60 secs is up). There is no minimum wait performed and no time wasted if a message matching your criteria is available or becomes available.
You don't need SIGNAL to do what you want. MQ does it for you with GET WAIT. If a message arrives at second 29 of a 60 second GET WAIT then it will return control to your program at second 29 with the message.
It's all explained in the manuals. Remember there is a programming reference as well as a guide. |
|
Back to top |
|
 |
bduncan |
Posted: Thu Oct 23, 2003 11:03 am Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
DO NOT POST THE SAME QUESTION IN MULTIPLE FORUMS!
It just wastes my time (having to delete them) and others because the discussion gets fragmented. _________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
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
|
|
|
|