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 » Trigger does not work - first try

Post new topic  Reply to topic
 Trigger does not work - first try « View previous topic :: View next topic » 
Author Message
sebastia
PostPosted: Fri Aug 05, 2005 2:51 am    Post subject: Trigger does not work - first try Reply with quote

Grand Master

Joined: 07 Oct 2004
Posts: 1003

Hi - I am trying to "trigger" a program when receiving a message.

Envir : Windows 2000 WS, with MQ ver 5.3 :

F:\>mqver
Name: WebSphere MQ
Version: 530.6 CSD06
CMVC level: p530-06-L040211
BuildType: IKAP - (Production)

***********************************************

I have the "data receive queue", named "Q3SAG", ...
the "trigger" or "initiation" queue, named "Q3IQ" ...
a "process" to be started, named "PSAG", ...
and (finally) a Trigger Monitor running on queue "Q3IQ"
( I dont know how to display it using RUNMQSC to "paste" it here ...)
.
+++++++++++++++++++++++++++++++++++
2 : display qlocal(Q3SAG)
AMQ8409: Ver detalles de la cola.
DESCR(Data q for Trigger tests) PROCESS(PSAG)
BOQNAME( ) INITQ(Q3IQ)
TRIGDATA( ) CLUSTER( )
CLUSNL( ) QUEUE(Q3SAG)
CRDATE(2005-08-03) CRTIME(10.18.02)
GET(ENABLED) PUT(ENABLED)
DEFPRTY(0) DEFPSIST(NO)
MAXDEPTH(5000) MAXMSGL(4194304)
USAGE(NORMAL) TRIGGER
TRIGTYPE(EVERY) TRIGDPTH(1)
TRIGMPRI(0) QDEPTHHI(80)
DEFTYPE(PREDEFINED) TYPE(QLOCAL)
SCOPE(QMGR) DEFBIND(OPEN)
CURDEPTH(0)
+++++++++++++++++++++++++++++++++++
3 : display qlocal(Q3IQ)
AMQ8409: Ver detalles de la cola.
DESCR(Initiation Q for trigger tests.)
PROCESS( ) BOQNAME( )
INITQ( ) TRIGDATA( )
QUEUE(Q3IQ) CRDATE(2005-08-03)
CRTIME(10.18.45) ALTDATE(2005-08-03)
ALTTIME(10.18.45) GET(ENABLED)
PUT(ENABLED) DEFPRTY(0)
RETINTVL(999999999) USAGE(NORMAL)
NOTRIGGER TRIGTYPE(FIRST)
TRIGDPTH(1) TRIGMPRI(0)
QDEPTHHI(80) QDEPTHLO(20)
QSVCIEV(NONE) DISTL(NO)
NPMCLASS(NORMAL) DEFTYPE(PREDEFINED)
TYPE(QLOCAL) SCOPE(QMGR)
DEFBIND(OPEN) IPPROCS(1)
OPPROCS(0) CURDEPTH(0)
+++++++++++++++++++++++++++++++++++
4 : display process(PSAG)
AMQ8407: Detalles de Display Process.
DESCR(Proves de trigger) APPLICID(f:\cpp\timewr\prova.exe)
USERDATA(DADESusuari) ENVRDATA( )
PROCESS(PSAG) ALTDATE(2005-08-03)
ALTTIME(11.34.22) APPLTYPE(WINDOWS)
+++++++++++++++++++++++++++++++++++

I can "Put a Test Message" into Q3SAG and it stays there :

display queue(Q3SAG)
1 : display queue(Q3SAG)
AMQ8409: Ver detalles de la cola.
DESCR(Data q for Trigger tests) PROCESS(PSAG)
BOQNAME( ) INITQ(Q3IQ)
...
CURDEPTH(1)
+++++++++++++++++++++++++++++++++++
.
If I put (manually) a message into Q3IQ,
the message is moved tl Dead Letter queue with Reason = "MQFB_TM_ERROR", which is nice, I think.
.
*********************************************
What am I missing, so putting a msg into Q3SAG does NOT produce
a Trigger message to be put into Q3IQ ???
*********************************************
The program I want to start
"f:\cpp\timewr\prova.exe"
does nothing but to write (append) actual time into a fixed-name file.
It is compiled "CL PROVA.C", nothing else ...
??? Can it be run in "background" ???
*************************************************
Thanks for any clue !!!
Sebastian.
.
P.D.- maybe someone can send me a Queue Manager definition that "does work" (altogether with a simple "prog.exe" .... or name.c ) ....
.
Back to top
View user's profile Send private message Visit poster's website
mqmhr
PostPosted: Fri Aug 05, 2005 3:01 am    Post subject: Reply with quote

Centurion

Joined: 28 Dec 2004
Posts: 105

Is the trigger monitor started? Trigger message will not be generated unless the initiation queue is open for input by the trigger monitor.
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Fri Aug 05, 2005 3:35 am    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

his trigger monitor is running (the display of the initq has ipprocs(1), and also his manually generated trigger messages is moved to the dlq by the trigger monitor as expected).

i think the queue setup is fine. it must be related to the process. there have been some discussions about this (and how to test it) in the past here and on the mqseries listserv, but i dont have a solution at hand right now (not my prefered pattform).

do some find here or on google and you'll find a solution, (or wait for someone to post it).

maybe this will help

http://www.mqseries.net/phpBB/viewtopic.php?p=74327&sid=5018ddae80f4fc0fdf92be86b1cf27b9
_________________
Regards, Butcher
Back to top
View user's profile Send private message
JT
PostPosted: Fri Aug 05, 2005 7:15 am    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

Terminate the trigger monitor and start it from a command line (foreground). You will now be able to see the results of any triggered activity.
Back to top
View user's profile Send private message
atoms
PostPosted: Tue Aug 09, 2005 11:04 pm    Post subject: Reply with quote

Apprentice

Joined: 10 Jun 2005
Posts: 27

Perhaps you already have solved this problem, otherwise a suggestion is to check what rights that the account under which MQ runs have. This account needs to have sufficient privileges to start the triggered program. I've had these problems myself when the program has simply not been triggered when messages arrive on the queue.
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 » Trigger does not work - first try
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.