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 Discussion » Purge message from a queue

Post new topic  Reply to topic
 Purge message from a queue « View previous topic :: View next topic » 
Author Message
maxy_14in
PostPosted: Thu Mar 18, 2010 12:34 pm    Post subject: Purge message from a queue Reply with quote

Apprentice

Joined: 07 Nov 2008
Posts: 43

We have a issue, when we are testing they load the queue with 1000 msgs at a time. How to clear the queue automatically for every hour ?

we faced the issue last week, so we increased the Qdepth and manually cleared the msgs every hour.

Would like to have sum other way to do it ... help is appretiated.

Our system is working on SOLARIS.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Mar 18, 2010 1:19 pm    Post subject: Reply with quote

Grand High Poobah

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

Set up a cron job
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Mar 18, 2010 8:52 pm    Post subject: Reply with quote

Grand High Poobah

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

Vitor wrote:
Set up a cron job

Or a scheduled job (windows).
And run a program that gets the messages until the queue is empty.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
harish_td
PostPosted: Thu Mar 18, 2010 10:23 pm    Post subject: Reply with quote

Master

Joined: 13 Feb 2006
Posts: 236

q program is my personal favorite for this kind of work
http://www-01.ibm.com/support/docview.wss?rs=171&uid=swg24000647&loc=en_US&cs=utf-8&lang=en
Back to top
View user's profile Send private message Yahoo Messenger
PeterPotkay
PostPosted: Fri Mar 19, 2010 3:48 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Set Expiry on the messages.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
maxy_14in
PostPosted: Fri Mar 19, 2010 5:33 pm    Post subject: Reply with quote

Apprentice

Joined: 07 Nov 2008
Posts: 43

the other end is not consuming the messages its just a load test.
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Sat Mar 20, 2010 3:56 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

That's fine. All answers are still valid.
_________________
Peter Potkay
Keep Calm and MQ On
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 Discussion » Purge message from 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.