Author |
Message
|
limaoli |
Posted: Thu Feb 22, 2007 7:55 am Post subject: Can I use MO71 to release stucked messages in queue? |
|
|
Newbie
Joined: 09 Feb 2007 Posts: 6
|
Sometimes the trigger does not work for whatever reason. I used to use a WMQTool button to reset trigger on and off some times to release stucked messages. Can I use MO71 to do this? Is there other MQ tool able to do this? Thanks. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Feb 22, 2007 7:59 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Anything that can send PCF messages or can cause mqsc commands to be executed can ALTER QUEUE(abc) NOTRIGGER followed by ALTER QUEUE(abc) TRIGGER.
You need to FIX the actual problem, though, that is causing the 'stuck' messages. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Feb 22, 2007 8:07 am Post subject: Re: Can I use MO71 to release stucked messages in queue? |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
limaoli wrote: |
Sometimes the trigger does not work for whatever reason |
Is it the trigger that doesn't work, or the triggered application that sometime fails to empty the queue? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
kevinf2349 |
Posted: Thu Feb 22, 2007 8:14 am Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
If you are using a trigger type of depth this is expected behaviour. If not then, as Jeff says, you really need to identify why triggering is getting 'switched off' rather than looking for a way of resetting manually. (Unless, of course, you are triggering on depth ) |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Feb 22, 2007 8:15 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
If a trigger-on-first program doesn't clear the queue, then triggering is still "on", but a new trigger event won't fire for a while (default trigger interval is fairly long).
If a trigger-on-every program doesn't clear the queue... the same. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
limaoli |
Posted: Thu Feb 22, 2007 4:24 pm Post subject: |
|
|
Newbie
Joined: 09 Feb 2007 Posts: 6
|
Where to put the command "ALTER QUEUE(abc) NOTRIGGER" and "ALTER QUEUE(abc) TRIGGER." in MO71? |
|
Back to top |
|
 |
kevinf2349 |
Posted: Thu Feb 22, 2007 6:00 pm Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
limaoli wrote: |
Where to put the command "ALTER QUEUE(abc) NOTRIGGER" and "ALTER QUEUE(abc) TRIGGER." in MO71? |
You don't...it genertes them when you alter the queue attributes through the panels.
If you want to use a 'batch process' for this use RUNMQSC with the commands you mentioned.
Having said that ..... What is causing the trigger to fail?...That is the question you should be asking. |
|
Back to top |
|
 |
dfore |
Posted: Tue Feb 27, 2007 1:56 pm Post subject: |
|
|
 Newbie
Joined: 26 Feb 2007 Posts: 7 Location: Nashville TN
|
Maybe you should try the mo03 tool (qload.exe) You can move or copy the messages off the queue and move them to a different queue. Or copy them into a text file ... etc... It's pretty sweet. _________________ Thank You,
Dean Fore
Sr. WebSphere MQ Administrator |
|
Back to top |
|
 |
|