|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Dynamic Reply To queue question |
« View previous topic :: View next topic » |
Author |
Message
|
noles321 |
Posted: Wed Jan 24, 2007 7:05 am Post subject: Dynamic Reply To queue question |
|
|
Apprentice
Joined: 15 Nov 2004 Posts: 43
|
Here is the scenario. We have an application that takes one large query breaks it into several small queries and sends it them to a queue, that has a farm of 500 MQClients that service the queue. The responses are sent back to a Dynamic Reply To Queue created when the query was sent. I have a wait time on the queue of 10 seconds. If all my needed responses come back in 3 seconds is there a way to continue on without continually waiting the whole 10 seconds. In other words if I have received 20 responses and that is all I am expecting do I have to wait for the timeout.
Thanks |
|
Back to top |
|
 |
noles321 |
Posted: Wed Jan 24, 2007 7:12 am Post subject: One More Question |
|
|
Apprentice
Joined: 15 Nov 2004 Posts: 43
|
If I didn't want to use the Dynamic Reply To queue's in the above situation is it possible to use a permanent queue searching on the correlation ID and have the same correlation ID for every message that constitutes a "group of responses"? |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jan 24, 2007 7:16 am Post subject: Re: One More Question |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
noles321 wrote: |
If I didn't want to use the Dynamic Reply To queue's in the above situation is it possible to use a permanent queue searching on the correlation ID and have the same correlation ID for every message that constitutes a "group of responses"? |
Yes it is, but for both cases I'd look up "logical grouping" in the manual, which is a better method than searching correl id. This does require all the sub-messages to have the same group id, and the last one to have "last in group" set, so you may have some design issues there.
A get can be set via the options to return only once the group is complete. Like all waits, it will return as soon as the criteria are met not at the end of the wait period! _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
zpat |
Posted: Wed Jan 24, 2007 7:21 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
I don't think the type of queue matters here.
Your code should peform MQGET with CONVERT, WAIT nn secs
You process the first message and repeat until either your total number of reply messages has been reached (which your code knows the number of) or the RC 2033 indicates end of wait time. |
|
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
|
|
|
|