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 » mqget node help

Post new topic  Reply to topic
 mqget node help « View previous topic :: View next topic » 
Author Message
sumitk.pandey
PostPosted: Wed Dec 07, 2011 6:15 am    Post subject: mqget node help Reply with quote

Newbie

Joined: 07 Dec 2011
Posts: 3

Hi All
I have created a flow
mqInput->mqGet->fileOutput
using this I am geting the the name of queue for mqGet node dynamicaly
and thus writing the message of this queue in a file but using this i able to write only the top message from the queue into the file.
My question is how i can write all the messages from the queue into the file.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Dec 07, 2011 6:22 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

By calling the MQGet node more than once in the same flow.

Or by calling the MQInput node more than once.
Back to top
View user's profile Send private message
sumitk.pandey
PostPosted: Wed Dec 07, 2011 6:52 am    Post subject: Reply with quote

Newbie

Joined: 07 Dec 2011
Posts: 3

mqjeff wrote:
By calling the MQGet node more than once in the same flow.

Or by calling the MQInput node more than once.


But then how I will decide that how many time the MQGET node is to be call because the depth of the queue from data is to be browse is unknown.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Dec 07, 2011 6:54 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

sumitk.pandey wrote:
mqjeff wrote:
By calling the MQGet node more than once in the same flow.

Or by calling the MQInput node more than once.


But then how I will decide that how many time the MQGET node is to be call because the depth of the queue from data is to be browse is unknown.


Ah!

You make this decision by being a programmer.
Back to top
View user's profile Send private message
McueMart
PostPosted: Wed Dec 07, 2011 7:18 am    Post subject: Reply with quote

Chevalier

Joined: 29 Nov 2011
Posts: 490
Location: UK...somewhere

One piece of advice is NOT to simply connect the Output node of the MQGET (or any downstream processing) back to the input of the MQGET. This will rapidly lead you into the hellish world of stack overflow issues.
Back to top
View user's profile Send private message
zpat
PostPosted: Wed Dec 07, 2011 7:26 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

This has been covered many times here, for example:

http://www.mqseries.net/phpBB2/viewtopic.php?t=58201&highlight=mqget+loop

http://www.mqseries.net/phpBB2/viewtopic.php?t=50115&highlight=mget+loop
Back to top
View user's profile Send private message
inMo
PostPosted: Tue Dec 13, 2011 12:52 pm    Post subject: Reply with quote

Master

Joined: 27 Jun 2009
Posts: 216
Location: NY

If you read about the MQGET NODE, you might come across something describing how it behaves when it doesn't find any messages. Perhaps it is different from it's behavior when it finds a message?
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 » mqget node help
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.