Author |
Message
|
MQEnthu |
Posted: Wed Feb 25, 2009 3:39 am Post subject: |
|
|
 Partisan
Joined: 06 Oct 2008 Posts: 329 Location: India
|
When we can set the attribute Trigger control to 'off', why should we have the Trigger Type as 'None'.. any reasons.. _________________ -----------------------------------------------
It is good to remember the past,
but don't let past capture your future |
|
Back to top |
|
 |
Challenger |
Posted: Wed Feb 25, 2009 4:27 am Post subject: |
|
|
 Centurion
Joined: 31 Mar 2008 Posts: 115
|
mqenthu wrote:
Quote: |
When we can set the attribute Trigger control to 'off', why should we have the Trigger Type as 'None'.. any reasons.. |
Possibly the wrong forum? Although this may be a challenge to you
I think I can safely say, no points for this |
|
Back to top |
|
 |
MQEnthu |
Posted: Wed Feb 25, 2009 5:04 am Post subject: |
|
|
 Partisan
Joined: 06 Oct 2008 Posts: 329 Location: India
|
Challenger wrote: |
4) Facilities you don't need (and why) |
MQEnthu wrote: |
When we can set the attribute Trigger control to 'off', why should we have the Trigger Type as 'None'.. any reasons.. |
Apologize if I have misunderstood the forum... _________________ -----------------------------------------------
It is good to remember the past,
but don't let past capture your future |
|
Back to top |
|
 |
Challenger |
Posted: Wed Feb 25, 2009 8:18 am Post subject: |
|
|
 Centurion
Joined: 31 Mar 2008 Posts: 115
|
Sorry - my apologies as well - this is a challenge to come up with new and novel MQ management facilities - not enhancements to the MQ product itself. Thanks for your input anyway.
But the trigger attribute is a flip-switch on-off, and AFAIK it's possible to set up the trigdepth parameter to say 5, and have trigtype set to none - this should trigger when five or more messages in the queue, not when the first message arrives or every message arrives - but I could be wrong and I'm waiting now to be shot down in flames  |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Feb 25, 2009 3:03 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
you mean trigtype set to "depth" and you need to reset the trigger once you have crossed the threshold.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
gbaddeley |
Posted: Wed Feb 25, 2009 3:42 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
MQEnthu wrote: |
When we can set the attribute Trigger control to 'off', why should we have the Trigger Type as 'None'.. any reasons.. |
You are asking why TRIGTYPE(NONE) is a valid setting, when triggering can (also) be turned on an off using TRIGGER and NOTRIGGER ?
TRIGGER and NOTRIGGER is just a toggle to enable and disable triggering. Looking at the current state of TRIGGER vs NOTRIGGER does not give any clues about whether this queue should or should not normally be triggered, it may just be that it has been set to NOTRIGGER to temporarily disable triggering.
Look at TRIGTYPE to get the definitive answer on whether triggering is being used to kick off processing of messages on the queue. TRIGTYPE(NONE) indicates that this queue does not use any type of triggering. _________________ Glenn |
|
Back to top |
|
 |
MQEnthu |
Posted: Thu Feb 26, 2009 3:22 am Post subject: |
|
|
 Partisan
Joined: 06 Oct 2008 Posts: 329 Location: India
|
Challenger wrote: |
...AFAIK it's possible to set up the trigdepth parameter to say 5, and have trigtype set to none - this should trigger when five or more messages in the queue, not when the first message arrives or every message arrives... |
I do not think so ...No triggering happens when the trigger type is set to None..
For triggering to happen in the scenario you have mentioned, the trigger type should be set to "Depth".. _________________ -----------------------------------------------
It is good to remember the past,
but don't let past capture your future |
|
Back to top |
|
 |
kevinf2349 |
Posted: Thu Feb 26, 2009 6:34 am Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
Maybe....and I have no proof one way or the other and maybe IBM could comment on this, but just MAYBE triggertype of NONE shortens the internal IBM code path? |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Feb 26, 2009 7:09 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
I'd bet that it's NOTRIGGER that shortens the code path and not anything in TRIGTYPE.
But remember that TRIGTYPE is an enumeration. It can't have a value that is not in the enumeration and still be legal. So the enumeration has to have a "null" value of some kind. |
|
Back to top |
|
 |
MQEnthu |
Posted: Thu Feb 26, 2009 8:38 pm Post subject: |
|
|
 Partisan
Joined: 06 Oct 2008 Posts: 329 Location: India
|
mqjeff wrote: |
I'd bet that it's NOTRIGGER that shortens the code path and not anything in TRIGTYPE. |
mqjeff wrote: |
But remember that TRIGTYPE is an enumeration. It can't have a value that is not in the enumeration and still be legal. So the enumeration has to have a "null" value of some kind. |
This might be the reason... Thank you _________________ -----------------------------------------------
It is good to remember the past,
but don't let past capture your future |
|
Back to top |
|
 |
|