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 » WebSphere Message Broker (ACE) Support » Fetching all the messages from a particular node using MQGet

Post new topic  Reply to topic
 Fetching all the messages from a particular node using MQGet « View previous topic :: View next topic » 
Author Message
VanshulChawlaSA
PostPosted: Fri Jul 24, 2009 3:28 am    Post subject: Fetching all the messages from a particular node using MQGet Reply with quote

Novice

Joined: 03 Jul 2009
Posts: 14

Hi,

I have a pub sub flow where i am publishing and in a reply to Q, the response for the publication is sent.
I need to read those responses in my flow using MQGet and send those responses to the intended recipient
But the problem is MQGet will read a single message from the queue.What can be done so that it reads on the messages will we have them on the queue?
Back to top
View user's profile Send private message
WMBDEV1
PostPosted: Fri Jul 24, 2009 5:09 am    Post subject: Re: Fetching all the messages from a particular node using M Reply with quote

Sentinel

Joined: 05 Mar 2009
Posts: 888
Location: UK

VanshulChawlaSA wrote:
I need to read those responses in my flow using MQGet


Why? can you not read them using an MQInput node?

I'm not sure I fully understand your scenario
Back to top
View user's profile Send private message
zpat
PostPosted: Fri Jul 24, 2009 6:08 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

If you can process them independently, use MQinput to drive a flow for each message. This is the conventional and best approach.

If you want to read a queue until empty in a single flow execution you can use a propagate loop in a compute node to drive a MQGET node multiple times (and have the "no message available" condition communicated back in a shared variable to terminate this loop).

You can loop a MQGET using WMB wiring loops but you tend to get stack overflow errors (see threads on this subject).


Last edited by zpat on Fri Jul 24, 2009 6:09 am; edited 1 time in total
Back to top
View user's profile Send private message
VanshulChawlaSA
PostPosted: Fri Jul 24, 2009 6:09 am    Post subject: Reply with quote

Novice

Joined: 03 Jul 2009
Posts: 14

Thanks got it
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 » WebSphere Message Broker (ACE) Support » Fetching all the messages from a particular node using MQGet
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.