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 » Using MQGet to empty a queue

Post new topic  Reply to topic
 Using MQGet to empty a queue « View previous topic :: View next topic » 
Author Message
kash3338
PostPosted: Thu May 21, 2009 12:36 am    Post subject: Using MQGet to empty a queue Reply with quote

Shaman

Joined: 08 Feb 2009
Posts: 709
Location: Chennai, India

Hi,

As per a requirement, I have to empty a queue, that is place all the messages from one queue to other using a MQGet node. How do i acheive this?

How do i read all the messages through MQGet and place it in other queue? The expected number of messages in queue would be around 20,000.
Back to top
View user's profile Send private message Send e-mail
WMBDEV1
PostPosted: Thu May 21, 2009 12:41 am    Post subject: Reply with quote

Sentinel

Joined: 05 Mar 2009
Posts: 888
Location: UK

MQInput node connected directly to an MQoutput node?

Exactly why you want to do this I dont know though.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu May 21, 2009 12:46 am    Post subject: Re: Using MQGet to empty a queue Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

kash3338 wrote:
As per a requirement, I have to empty a queue, that is place all the messages from one queue to other using a MQGet node.


Why a MQGet node not an MQInput? Why a WMB flow not an external tool? Is this a one off or a regular opperation?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
francoisvdm
PostPosted: Thu May 21, 2009 4:55 am    Post subject: Reply with quote

Partisan

Joined: 09 Aug 2001
Posts: 332

If you do decide to do it with MQGet...watch out for the stack overflow error, search forum for examples on how to avoid it.

If you must do it with broker flow... consider MQInput -> MQOutput and only start the flow when you need it to be done.
_________________
If you do not know the answer or you get the urge to answer with "RTFM" or "Search better in this forum", please refrain from doing so, just move on to the next question. Much appreciated.

Francois van der Merwe
Back to top
View user's profile Send private message Send e-mail
francoisvdm
PostPosted: Thu May 21, 2009 9:37 pm    Post subject: Reply with quote

Partisan

Joined: 09 Aug 2001
Posts: 332

What about sending a 'MQCMD_CLEAR_Q" command to the queue manager? .... I think that will be the most efficient.
_________________
If you do not know the answer or you get the urge to answer with "RTFM" or "Search better in this forum", please refrain from doing so, just move on to the next question. Much appreciated.

Francois van der Merwe
Back to top
View user's profile Send private message Send e-mail
AkankshA
PostPosted: Thu May 21, 2009 9:47 pm    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

francoisvdm wrote:
What about sending a 'MQCMD_CLEAR_Q" command to the queue manager? .... I think that will be the most efficient.


while using this make sure your queue is not open by any other application... neither for input nor for output......
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
fjb_saper
PostPosted: Fri May 22, 2009 9:46 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

francoisvdm wrote:
What about sending a 'MQCMD_CLEAR_Q" command to the queue manager? .... I think that will be the most efficient.


er ... Francois, the requirement was not to empty/clear the queue but to move the messages from queue A to queue B.
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
francoisvdm
PostPosted: Fri May 22, 2009 9:04 pm    Post subject: Reply with quote

Partisan

Joined: 09 Aug 2001
Posts: 332

oops, yes....sorry, the subject line a little confusing for the "older male"
_________________
If you do not know the answer or you get the urge to answer with "RTFM" or "Search better in this forum", please refrain from doing so, just move on to the next question. Much appreciated.

Francois van der Merwe
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Using MQGet to empty a queue
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.