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 » General IBM MQ Support » Dynamic Reply To queue question

Post new topic  Reply to topic
 Dynamic Reply To queue question « View previous topic :: View next topic » 
Author Message
noles321
PostPosted: Wed Jan 24, 2007 7:05 am    Post subject: Dynamic Reply To queue question Reply with quote

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
View user's profile Send private message Send e-mail AIM Address
noles321
PostPosted: Wed Jan 24, 2007 7:12 am    Post subject: One More Question Reply with quote

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
View user's profile Send private message Send e-mail AIM Address
Vitor
PostPosted: Wed Jan 24, 2007 7:16 am    Post subject: Re: One More Question Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Wed Jan 24, 2007 7:21 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Dynamic Reply To queue question
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.