|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Clearing old messages |
« View previous topic :: View next topic » |
Author |
Message
|
roshana |
Posted: Tue May 20, 2014 7:49 am Post subject: Clearing old messages |
|
|
Newbie
Joined: 20 May 2014 Posts: 2
|
Hi Guys,
I have queues which are used by dev team and, they dont often consume messages from the queue. I got a request to create a script that will clear messages in the queue which are 'x' days old.
As I understand when I issue a clear command it will clear the entire messages in the queue. Is they any other way ? |
|
Back to top |
|
 |
hughson |
Posted: Tue May 20, 2014 7:53 am Post subject: |
|
|
 Padawan
Joined: 09 May 2013 Posts: 1959 Location: Bay of Plenty, New Zealand
|
|
Back to top |
|
 |
RogerLacroix |
Posted: Tue May 20, 2014 8:07 am Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
|
Back to top |
|
 |
PeterPotkay |
Posted: Tue May 20, 2014 10:56 am Post subject: Re: Clearing old messages |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
roshana wrote: |
I got a request to create a script that will clear messages in the queue which are 'x' days old. |
Request that they properly set the MQMD's Expiry field on their messages and MQ will take care of this for you. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
roshana |
Posted: Wed May 21, 2014 3:41 am Post subject: |
|
|
Newbie
Joined: 20 May 2014 Posts: 2
|
Thank you guys, I will check all three suggestion in my lab.
Regards
Roshan |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|