ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » What type of triggering for this scenario

Post new topic  Reply to topic
 What type of triggering for this scenario « View previous topic :: View next topic » 
Author Message
mqjava
PostPosted: Tue Apr 12, 2011 7:24 pm    Post subject: What type of triggering for this scenario Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Tue Apr 12, 2011 7:31 pm    Post subject: Re: What type of triggering for this scenario Reply with quote

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
View user's profile Send private message Send e-mail
Mr Butcher
PostPosted: Wed Apr 13, 2011 2:11 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjava
PostPosted: Thu Apr 14, 2011 9:22 am    Post subject: Reply with quote

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
View user's profile Send private message
exerk
PostPosted: Thu Apr 14, 2011 1:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Thu Apr 14, 2011 8:08 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
shashivarungupta
PostPosted: Fri Apr 15, 2011 12:53 am    Post subject: Reply with quote

Grand Master

Joined: 24 Feb 2009
Posts: 1343
Location: Floating in space on a round rock.

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?


Here is/are the answer(s) to your question(s), please read it carefully :
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzal.doc/fg13910_.htm
_________________
*Life will beat you down, you need to decide to fight back or leave it.
Back to top
View user's profile Send private message Send e-mail
mqjava
PostPosted: Mon Apr 18, 2011 6:10 am    Post subject: Reply with quote

Voyager

Joined: 25 May 2009
Posts: 80
Location: New Jersey

Thanks All.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » What type of triggering for this scenario
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.