Author |
Message
|
mqjava |
Posted: Tue Apr 12, 2011 7:24 pm Post subject: What type of triggering for this scenario |
|
|
 Voyager
Joined: 25 May 2009 Posts: 80 Location: New Jersey
|
Hi All,
I have a local queue - QLOCAL in which message is put by a rcvr channel, i have set a app - APP.A to trigger as soon as a message is arrived in the QLOCAL. So i have set the trigtype to FIRST on QLOCAL.
APP.A tries to read the messages in QLOCAL, and APP.A is designed in such a way that some times it will leave some of the messages in the queue QLOCAL and it will try to process the left messages when its started again. I dont have any idea why the APP.A was designed like that, but App team gives 100 % guarantee that if the messages in the queues are tried for max of 10 times it will be processed.
my question is, after the first trigger occurs with trigtype FIRST and if APP.A leaves some messages in the QLOCAL and ends, i want to trigger the APP.A again till the queue depth becomes zero, how can i achieve this?
Thanks. |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Apr 12, 2011 7:31 pm Post subject: Re: What type of triggering for this scenario |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
mqjava wrote: |
Hi All,
I have a local queue - QLOCAL in which message is put by a rcvr channel, i have set a app - APP.A to trigger as soon as a message is arrived in the QLOCAL. So i have set the trigtype to FIRST on QLOCAL.
APP.A tries to read the messages in QLOCAL, and APP.A is designed in such a way that some times it will leave some of the messages in the queue QLOCAL and it will try to process the left messages when its started again. I dont have any idea why the APP.A was designed like that, but App team gives 100 % guarantee that if the messages in the queues are tried for max of 10 times it will be processed.
my question is, after the first trigger occurs with trigtype FIRST and if APP.A leaves some messages in the QLOCAL and ends, i want to trigger the APP.A again till the queue depth becomes zero, how can i achieve this?
Thanks. |
Make the Backout Threshold on the APP.A input queue be 11. Have APP.A consume in a unit of work and process the queue until empty.
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
Mr Butcher |
Posted: Wed Apr 13, 2011 2:11 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
beside that, mq will create a new trigger automatically if you leave a qlocal triggered FIRST non-empty (if all other trigger conditions are fullfilled). and maybe its also worth reading about the TRIGINT attribute. _________________ Regards, Butcher |
|
Back to top |
|
 |
mqjava |
Posted: Thu Apr 14, 2011 9:22 am Post subject: |
|
|
 Voyager
Joined: 25 May 2009 Posts: 80 Location: New Jersey
|
Thanks fjb_saper, and Butcher.
changing TRIGINT will affect anyother things in the QM? like channel triggering? setting a TRIGINT of low value will impact the permormance of the QM?
Thanks in advance. |
|
Back to top |
|
 |
exerk |
Posted: Thu Apr 14, 2011 1:04 pm Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
mqjava wrote: |
...changing TRIGINT will affect anyother things in the QM? like channel triggering? setting a TRIGINT of low value will impact the permormance of the QM?... |
Read the manual! And yes, a low value will most certainly affect performance as it can act like trigger every. _________________ 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 |
|
 |
fjb_saper |
Posted: Thu Apr 14, 2011 8:08 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
mqjava wrote: |
changing TRIGINT will affect anyother things in the QM? like channel triggering? setting a TRIGINT of low value will impact the permormance of the QM? |
I guess it really depends on how you define low value here. The default is over 10 days, we use 5 mins... As long as you do not define low value in the seconds range I don't think you'll run into big problems  _________________ MQ & Broker admin |
|
Back to top |
|
 |
shashivarungupta |
Posted: Fri Apr 15, 2011 12:53 am Post subject: |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
|
Back to top |
|
 |
mqjava |
Posted: Mon Apr 18, 2011 6:10 am Post subject: |
|
|
 Voyager
Joined: 25 May 2009 Posts: 80 Location: New Jersey
|
|
Back to top |
|
 |
|