Author |
Message
|
cdhami |
Posted: Fri Nov 03, 2006 9:43 am Post subject: Browse and trigger |
|
|
Newbie
Joined: 03 Feb 2006 Posts: 9
|
Hi,
I need to clarify the following.
My queue has trigger first and Manager has trigger interval of 20 seconds
1. If my application does browse open, and then goes into delay, will the next message after 20 seconds triggers one more transaction.?
2. Under browse_first + input_shared option , if two transaction are triggered, will both read the same message?
thanks
cdhami |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Nov 03, 2006 9:49 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Trigger on First only fires when qdepth goes from 0 to 1.
You shouldn't use BROWSE for anything other than a message browsing tool. Any situation in which you need to "non-destructively" get a message is better handled by syncpoint+backout processing. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
cdhami |
Posted: Fri Nov 03, 2006 9:54 am Post subject: |
|
|
Newbie
Joined: 03 Feb 2006 Posts: 9
|
Thanks jeff...but my question is still unanswered.
I need to prove right, the above questions posted as it is in our current application. This will help us to make changes to it.
Cdhami |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Nov 03, 2006 10:15 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
No, your question is answered.
Trigger on first only fires when queue depth goes from zero to 1. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
kevinf2349 |
Posted: Fri Nov 03, 2006 11:29 am Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
What do you understand TRIGINT to be used for? I think you are getting confused about what the trigger interval value's purpose is.
There is no 'trigger on time' value. The trigger interval is not meant to be there for that purpose and it is an awful design to try and use it for that, especially as it is a Queue manager wide setting.
Jeff has correctly answered your question.
The TRIGINT value should be used with extreme caution and with the understanding that this value is queue manager wide and will effect all queues with a trigger type of FIRST.
Now to answer the other component to your question. It depends on your own code as to which message it will read.
The bottom line is if the triggered application destructively gets the messages on the triggered queue then all will be well. If it doesn't, then you are potentially in for a world of hurt. |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Nov 03, 2006 3:39 pm Post subject: Re: Browse and trigger |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
cdhami wrote: |
Hi,
I need to clarify the following.
My queue has trigger first and Manager has trigger interval of 20 seconds
1. If my application does browse open, and then goes into delay, will the next message after 20 seconds triggers one more transaction.?
2. Under browse_first + input_shared option , if two transaction are triggered, will both read the same message?
thanks
cdhami |
1) you do not understand the concept of triggering... There is no trigger created if the queue is being serviced. A browse process would mean servicing the queue....
2) see Jeff's suggestion. You need to use a destructive get. Do it under syncpoint.
3) reevaluate your requirements. Maybe triggering is not the solution for this scenario...
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|