Author |
Message
|
punitks |
Posted: Mon Jul 06, 2009 3:38 am Post subject: MQ Sender Channel Going Inactive |
|
|
Newbie
Joined: 06 Jul 2009 Posts: 4
|
I have a scheduled job to Stop and Start the MQ Manager to clear unwanted messages lying in the queue. This job runs everyday in the morning.
The jobs been running as expected for the last 6 odd months, until recently when the MQ Sender Channel started going inactive after the MQ Manager was Stopped/Started. I have to manaully start the Sender Channel for the messages to bein flowing.
An idea what might be causing this? |
|
Back to top |
|
 |
exerk |
Posted: Mon Jul 06, 2009 3:45 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
Check the triggering settings on the XMITQ for that channel...and why stop/start the queue manager to clear messages in which queue? _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
WMBDEV1 |
Posted: Mon Jul 06, 2009 3:57 am Post subject: Re: MQ Sender Channel Going Inactive |
|
|
Sentinel
Joined: 05 Mar 2009 Posts: 888 Location: UK
|
punitks wrote: |
I have a scheduled job to Stop and Start the MQ Manager to clear unwanted messages lying in the queue. |
Sledge hammer to crack a nut? |
|
Back to top |
|
 |
Vitor |
Posted: Mon Jul 06, 2009 4:00 am Post subject: Re: MQ Sender Channel Going Inactive |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
punitks wrote: |
I have a scheduled job to Stop and Start the MQ Manager to clear unwanted messages lying in the queue. This job runs everyday in the morning. |
This is a very odd thing to want to do, or need to do. There are a number of better solutions, including designing your system so unwanted messages don't pile up in the first place. One of the key problems is your method won't clear out unwanted messages set to be persistent!
punitks wrote: |
The jobs been running as expected for the last 6 odd months, until recently when the MQ Sender Channel started going inactive after the MQ Manager was Stopped/Started. I have to manaully start the
Sender Channel for the messages to bein flowing. |
An inactive channel is not a problem. It's only a problem if it doesn't start running when there's a message to transmit. So is it that messages don't flow, or that the channel status shows as inactive after queue manager start and that's spooked you? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
punitks |
Posted: Mon Jul 06, 2009 4:04 am Post subject: |
|
|
Newbie
Joined: 06 Jul 2009 Posts: 4
|
The messages do not flow unless i manually start the sender channel. This is the main issue I am facing... |
|
Back to top |
|
 |
Vitor |
Posted: Mon Jul 06, 2009 4:08 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
punitks wrote: |
The messages do not flow unless i manually start the sender channel. This is the main issue I am facing... |
Aside from the poor design that has unwanted messages sitting in queues, or the really poor decision to bounce the queue manager to get rid of them?
Check the triggering settings as my most worthy apprentice points out, also check that the channel initiator is running properly after the bounce. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
punitks |
Posted: Mon Jul 06, 2009 5:22 am Post subject: |
|
|
Newbie
Joined: 06 Jul 2009 Posts: 4
|
Changed the Transmission Queue setings and it works.. thnx....
Never mind the MQ Manager Bounce, thats for a different purpose altogether....
thnx anyways |
|
Back to top |
|
 |
WMBDEV1 |
Posted: Mon Jul 06, 2009 5:45 am Post subject: |
|
|
Sentinel
Joined: 05 Mar 2009 Posts: 888 Location: UK
|
punitks wrote: |
Never mind the MQ Manager Bounce, thats for a different purpose |
Must have been me (and others) misinterpreting the really vague statement.....
Quote: |
Stop and Start the MQ Manager to clear unwanted messages lying in the queue |
Glad you got your trigger working though.
Last edited by WMBDEV1 on Mon Jul 06, 2009 6:28 am; edited 1 time in total |
|
Back to top |
|
 |
Vitor |
Posted: Mon Jul 06, 2009 6:19 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
punitks wrote: |
Never mind the MQ Manager Bounce, thats for a different purpose altogether.... |
So the purpose has changed since your original post? Now that's what I call a fast moving environment! There are very few good purposes that include a queue manager being bounced.
Your next purpose is to discover how the xmitq settings were changed; it's highly unlikely they changed themselves! _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
punitks |
Posted: Tue Jul 07, 2009 12:45 am Post subject: |
|
|
Newbie
Joined: 06 Jul 2009 Posts: 4
|
Could you suggest how to delete the messages in a queue without stopping the Queue Manager? I have tried different commands but none works since the Queue manager is UP
This MQ is accessed thru CL commands on an AS/400[/img][/code][/quote] |
|
Back to top |
|
 |
Vitor |
Posted: Tue Jul 07, 2009 1:38 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
punitks wrote: |
Could you suggest how to delete the messages in a queue without stopping the Queue Manager? |
Any number of support pacs will achieve this, or any of the other methods a search of this forum will turn up.
punitks wrote: |
I have tried different commands but none works since the Queue manager is UP |
Most of the commands won't work with the queue manager down! The principle commands don't work while the queue is in use, a limitation the support pacs (and other methods) don't share.
Presumably the reason for the queue manager bounce has now changed again? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
WMBDEV1 |
Posted: Tue Jul 07, 2009 1:45 am Post subject: |
|
|
Sentinel
Joined: 05 Mar 2009 Posts: 888 Location: UK
|
And if you only want your messages to exist for a certain period of time why not set a message expiry? |
|
Back to top |
|
 |
sumit |
Posted: Tue Jul 07, 2009 4:57 am Post subject: |
|
|
Partisan
Joined: 19 Jan 2006 Posts: 398
|
Why are the messages going to this queue when you don't even need them?
punitks wrote: |
I have tried different commands but none works since the Queue manager is UP |
The correct understanding should be, you were not able to remove messages because some process must had opened the queue object at that instant. _________________ Regards
Sumit |
|
Back to top |
|
 |
jhidalgo |
Posted: Wed Jul 08, 2009 11:51 am Post subject: |
|
|
 Disciple
Joined: 26 Mar 2008 Posts: 161
|
punitks wrote: |
Could you suggest how to delete the messages in a queue without stopping the Queue Manager? I have tried different commands but none works since the Queue manager is UP
This MQ is accessed thru CL commands on an AS/400 |
you can CLEAR them, GET them or set the expiry to what ever works for you, stopping the qmgr is really stupid in this case, what will you do with persistent messages ? |
|
Back to top |
|
 |
|