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 » IBM MQ Installation/Configuration Support » MQ 7.0.1 Trigger on Depth issue

Post new topic  Reply to topic
 MQ 7.0.1 Trigger on Depth issue « View previous topic :: View next topic » 
Author Message
Sam Uppu
PostPosted: Wed Mar 10, 2010 6:32 pm    Post subject: MQ 7.0.1 Trigger on Depth issue Reply with quote

Yatiri

Joined: 11 Nov 2008
Posts: 610

Hi Guys,
MQ 7.0.1 on AIX 6.1.

I am trying to setup trigger an application to read the msgs off of the queue when the depth reaches certain count. The triggering is working on Every and First.

When I set the trigger with Depth and a depth count of 10 on the queue, the application is triggered for the very first time but the trigger is again resetting to "off"/notrigger on the queue and it never goes to "ON"/Trigger state on the queue. I dont see any error in the runmqtrm command output file.

Here are the settings on the queue:
Code:
dis ql(TEST.QL)
     1 : dis ql(TEST.QL)
AMQ8409: Display Queue details.
   QUEUE(TEST.QL)            TYPE(QLOCAL)
   ACCTQ(QMGR)                             ALTDATE(2010-03-10)
   ALTTIME(20.04.39)                       BOQNAME( )
   BOTHRESH(0)                             CLUSNL( )
   CLUSTER( )                              CLWLPRTY(0)
   CLWLRANK(0)                             CLWLUSEQ(QMGR)
   CRDATE(2010-03-10)                      CRTIME(19.54.09)
   CURDEPTH(11)                            DEFBIND(OPEN)
   DEFPRTY(0)                              DEFPSIST(NO)
   DEFPRESP(SYNC)                          DEFREADA(NO)
   DEFSOPT(SHARED)                         DEFTYPE(PREDEFINED)
   DESCR( )                                DISTL(NO)
   GET(ENABLED)                            HARDENBO
   INITQ(SYSTEM.DEFAULT.INITIATION.QUEUE)
   IPPROCS(0)                              MAXDEPTH(5000)
   MAXMSGL(4194304)                        MONQ(QMGR)
   MSGDLVSQ(PRIORITY)                      [b]NOTRIGGER[/b]
   NPMCLASS(NORMAL)                        OPPROCS(0)
   PROCESS(PROCESS.LOG)                    PUT(ENABLED)
   PROPCTL(COMPAT)                         QDEPTHHI(80)
   QDEPTHLO(20)                            QDPHIEV(DISABLED)
   QDPLOEV(DISABLED)                       QDPMAXEV(ENABLED)
   QSVCIEV(NONE)                           QSVCINT(999999999)
   RETINTVL(999999999)                     SCOPE(QMGR)
   SHARE                                   STATQ(QMGR)
   TRIGDATA( )                             TRIGDPTH(10)
   TRIGMPRI(0)                             TRIGTYPE(DEPTH)
   USAGE(NORMAL)

Am I missing anything to set for the Depth to work?.

Thanks in advance.

[/quote]
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Wed Mar 10, 2010 6:47 pm    Post subject: Re: MQ 7.0.1 Trigger on Depth issue Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Sam Uppu wrote:
When I set the trigger with Depth and a depth count of 10 on the queue, the application is triggered for the very first time but the trigger is again resetting to "off"/notrigger on the queue and it never goes to "ON"/Trigger state on the queue.


Working as designed. Read about Depth Triggering in the manual. You have to reenable a Depth Trigger yourself each time.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
Sam Uppu
PostPosted: Wed Mar 10, 2010 7:49 pm    Post subject: Re: MQ 7.0.1 Trigger on Depth issue Reply with quote

Yatiri

Joined: 11 Nov 2008
Posts: 610

PeterPotkay wrote:
Sam Uppu wrote:
When I set the trigger with Depth and a depth count of 10 on the queue, the application is triggered for the very first time but the trigger is again resetting to "off"/notrigger on the queue and it never goes to "ON"/Trigger state on the queue.


Working as designed. Read about Depth Triggering in the manual. You have to reenable a Depth Trigger yourself each time.


Thanks Peter.

Question:

When we run the trigger monitor in the background, we can go with below options:
1.) nohup runmqtrm -m <QMgr> -n <Initiation queue> > output file &
We can see all the errors associated with runmqtrm in the output file. We need to add the above syntax for the server startup scripts runmqtrm to come up automatically when the server is rebooted.

2.) We can define as a service within runmqsc:
Code:
DEFINE SERVICE(SERVICE.LOG) +
       CONTROL(QMGR) +
       SERVTYPE(SERVER) +
       STARTCMD('+MQ_INSTALL_PATH+/bin/runqmtrm') +
       STARTARG('-m +QMNAME+ -q INITQ.LOG') +
       STOPCMD('+MQ_INSTALL_PATH+/bin/amqsstop') +
       REPLACE


In this case, we no need to add it to the server startup scripts as this is controlled by Qmgr startup. If we define the Trigger monitor as a service and if there are any issues with trigger monitor where these errors are written or found?. In the Qmgr's AMQ* errors?.

Thanks in advance.
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 » IBM MQ Installation/Configuration Support » MQ 7.0.1 Trigger on Depth issue
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.