Author |
Message
|
Artemio |
Posted: Fri Mar 05, 2004 8:48 pm Post subject: I need programme the dead.letters.queue |
|
|
 Novice
Joined: 11 Sep 2003 Posts: 21
|
I need to set option to discared the old message in the dead.letters.queue because my dead.letters.queue will be full!!!, How I hava to do this? |
|
Back to top |
|
 |
PeterPotkay |
Posted: Fri Mar 05, 2004 9:18 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Take a look in the Sys Admin Guide. There is a whole chapter about handling messages in the DLQ. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
kman |
Posted: Mon Mar 08, 2004 12:19 am Post subject: |
|
|
Partisan
Joined: 21 Jan 2003 Posts: 309 Location: Kuala Lumpur, Malaysia
|
also check out the suppport pac site. there is a support pac for deadletter handling.
Or check out CapitalWare site for some stuff.  |
|
Back to top |
|
 |
bower5932 |
Posted: Mon Mar 08, 2004 6:39 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
If you simply want to discard them, consider putting an expiry on them that will get them thrown away as they expire (which is a good thing to consider for all messages). |
|
Back to top |
|
 |
bduncan |
Posted: Mon Mar 08, 2004 1:30 pm Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
Perhaps my memory is rusty, but setting an expiry on dead letter messages will not prevent the dead letter queue from filling up. Because expired messages aren't actually removed from the queue until an MQGET is issued that would have otherwise retrieved it, you can have a queue full of expired messages. As long as there is no application doing MQGETs (browse or otherwise) against the dead letter queue, it will fill up.
right?  _________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
bower5932 |
Posted: Mon Mar 08, 2004 2:51 pm Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
You are correct about having to try a MQGET to actually get rid of the message. I figured that if you were worried about these messages that somebody would be looking at the queue often enough to throw them away.
However, I believe that there is a zOS parameter that you can specify that says how often to scan looking for expired messages. I guess I could claim that I was talking about zOS....  |
|
Back to top |
|
 |
bduncan |
Posted: Wed Mar 10, 2004 2:31 pm Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
zOS? What's that?  _________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
oz1ccg |
Posted: Thu Mar 11, 2004 8:37 am Post subject: |
|
|
 Yatiri
Joined: 10 Feb 2002 Posts: 628 Location: Denmark
|
I guess it's ALTER QMGR EXPRYINT(n) that Bower is refering to.
http://publibfp.boulder.ibm.com/epubs/html/csqzaj09/csqzaj090p.htm#HDRALTMMS
But it's only available on z/OS, but it's quite simple to check for expired messages:
Code: |
mqconnect
Query local-queues
do while more queues
mqopen
mqget (with msgid=MrMQ, corrid=MrMQ a non used combination)
mqclose
end
mqdisc |
So such a routine shouldn't be so difficult to write...
By the way zOS or in Danish z/OS is just another name for a stable web-server, no big deal.
Just my $0.02  _________________ Regards, Jørgen
Home of BlockIP2, the last free MQ Security exit ver. 3.00
Cert. on WMQ, WBIMB, SWIFT. |
|
Back to top |
|
 |
|