Author |
Message
|
PhiliB |
Posted: Wed May 10, 2006 7:16 am Post subject: QDepth Question |
|
|
Novice
Joined: 16 Sep 2004 Posts: 21 Location: Portsmouth
|
Afternoon All
I have a quick question which while i think there is a simple enough answer i just wanted to check to see if there was a more appropiate way to go about this.
Basically we are creating a queue that we wanted to be alerted if anything arrives on this queue. We dont necessarily need the message removed or sent anywhere but notice that one has appeared there.
So an alert using the QDEPTHHI & QDEPTHLO settings was my thinking. However as these are percentages & if the default of '5000' was left for MAXDEPTH i cant see how it would pick up 1 message.
Therefore I was going to recomend that MAXDEPTH was changed to '100' and QDEPTHHI could then be '1'
Does anyone have any other options for alerting when 1 message arrives
Cheers
Phil |
|
Back to top |
|
 |
wschutz |
Posted: Wed May 10, 2006 7:18 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
trigger on first?
can you be sure you'll NEVER have more than 100 messages on the queue? _________________ -wayne |
|
Back to top |
|
 |
PhiliB |
Posted: Wed May 10, 2006 7:40 am Post subject: |
|
|
Novice
Joined: 16 Sep 2004 Posts: 21 Location: Portsmouth
|
Thought about the trigger option which could invoke a small program to place a message on a monitored queue, still checking into that option.
Also I cant be sure, even though its pretty unlikely, that the queue wont receive 100 messages which is kinda why i created this post.
Thanks
Phil |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed May 10, 2006 7:48 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
So, let's be clear.
You have a queue Q1. A message arrives on this queue. When this happens, you want an "alert" to be created.
You do not care about the content of that message, and you do not care if the message remains or not.
This says to me that you should have a process that is triggered on first, removes the message and generates the alert. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
kevinf2349 |
Posted: Wed May 10, 2006 7:50 am Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
Quote: |
Thought about the trigger option which could invoke a small program to place a message on a monitored queue, still checking into that option.
|
Huh? Isn't that a duplicate effort? The initial queue will already be being monitored by the trigger monitor won't it?
Maybe I am missing the actual issue here.
Why do you want to be notified? Do you want notification every time a message hits the queue or just when the first message hits it? What is the significance of 100 messages? Why set such a small limit at all?
If you are worried about the queue filling up then the real question is what does the business requirement require you to do with the messages? Throw them away? Process them? Redirect them?
These are not questions we can answer but for example you could trigger on first and trigger a process that changes the trigger characteristics on the queue to DEPTH(100) and trigger a different process when it hits 100 messages. |
|
Back to top |
|
 |
EddieA |
Posted: Wed May 10, 2006 9:52 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Quote: |
So an alert using the QDEPTHHI & QDEPTHLO settings was my thinking |
If you do ever think of going down this route, then read the manual about how these alerts work. Then read it again. Then sleep on it, and re-read it. They don't work how most people expect.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
PeterPotkay |
Posted: Wed May 10, 2006 1:41 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
A. do u need to start a program to eat that message? Use triggering.
B. do u ned to know only that a message is on the queue (q depth > 0)? write a program that inquires on the depth of the queue every x seconds.
C. do you need to know anytime a message lands on the queue, regardless of when or whether something picked it up? or regardless of whether it got backed out? Thenuse Queue Statistics and look at the enqueue count every x seconds.
B and C are typical monitoring functions available in any MQ monitoring tool. We use QPASA to get this info. Or you could write your own. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
Nigelg |
Posted: Thu May 11, 2006 11:17 pm Post subject: |
|
|
Grand Master
Joined: 02 Aug 2004 Posts: 1046
|
Have a look at the Queue Service Interval events. _________________ MQSeries.net helps those who help themselves.. |
|
Back to top |
|
 |
|