Author |
Message
|
wbimb |
Posted: Thu Feb 08, 2007 11:29 pm Post subject: Triggering not working |
|
|
 Centurion
Joined: 17 Aug 2006 Posts: 144
|
I have a local Q XYZ and i have made triggering on
with trigger type as every and initiation queue as the System default one
and also provided the process name to it
In the process defination ...i have just given the path to notepad.exe
i have created the trigger monitor on the MQServies console with the initiation queue as the System one
but when i put the message in the XYZ queue the trigger is not fired.
BUT if i started the trigger monitor using runmqtrm from command line the trigger gets fired
I am doing this on windows machine
Can anyone tell wht is going wrong |
|
Back to top |
|
 |
ashu |
Posted: Thu Feb 08, 2007 11:32 pm Post subject: Re: Triggering not working |
|
|
 Centurion
Joined: 11 Nov 2006 Posts: 132
|
wbimb wrote: |
I have a local Q XYZ and i have made triggering on
with trigger type as every and initiation queue as the System default one
and also provided the process name to it
In the process defination ...i have just given the path to notepad.exe
i have created the trigger monitor on the MQServies console with the initiation queue as the System one
but when i put the message in the XYZ queue the trigger is not fired.
BUT if i started the trigger monitor using runmqtrm from command line the trigger gets fired
I am doing this on windows machine
Can anyone tell wht is going wrong |
You mean to say that starting Trigger Monitor from Explorer does not help...is it? |
|
Back to top |
|
 |
wbimb |
Posted: Thu Feb 08, 2007 11:34 pm Post subject: |
|
|
 Centurion
Joined: 17 Aug 2006 Posts: 144
|
Yes i have a Trigger monitor on MQServices console which shows me running but does not trigger
But when i start the trigger monitor from command line "runmqtrm" it does the trick |
|
Back to top |
|
 |
HubertKleinmanns |
Posted: Fri Feb 09, 2007 12:29 am Post subject: |
|
|
 Shaman
Joined: 24 Feb 2004 Posts: 732 Location: Germany
|
wbimb,
you should tell us your MQ version - because the mechanism, how to define and start a trigger monitor, has been changed in version 6. _________________ Regards
Hubert |
|
Back to top |
|
 |
wbimb |
Posted: Fri Feb 09, 2007 12:30 am Post subject: |
|
|
 Centurion
Joined: 17 Aug 2006 Posts: 144
|
|
Back to top |
|
 |
HubertKleinmanns |
Posted: Fri Feb 09, 2007 12:49 am Post subject: |
|
|
 Shaman
Joined: 24 Feb 2004 Posts: 732 Location: Germany
|
You wrote, you triggered the application "notepad.exe". When you run the trigger monitor from the MQ Services I think, the trigger monitor cannot start the application - because the trigger monitor itself runs as a service in the background.
When you run "runmqtrm" in a Windows CMD shell, the trigger monitor runs in the foreground and so can start the Notepad editor.
Write a short CMD batch file, which just writes a message to a file (maybe the actual date and time) and try again.
Just a guess. _________________ Regards
Hubert |
|
Back to top |
|
 |
wbimb |
Posted: Fri Feb 09, 2007 1:01 am Post subject: |
|
|
 Centurion
Joined: 17 Aug 2006 Posts: 144
|
I created a bat while which will count the number of files in a directory and write it to a text file
1.) When i run runmqtrm and put a message in the Queue...the bat files executes and the text file is created
2.) But when i put a message when the trigger monitor on the MQServices is running...bat file doesnot get executed |
|
Back to top |
|
 |
exerk |
Posted: Fri Feb 09, 2007 1:58 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
Any trigger-related messages on the Dead-letter queue? _________________ 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 |
|
 |
wbimb |
Posted: Fri Feb 09, 2007 1:59 am Post subject: |
|
|
 Centurion
Joined: 17 Aug 2006 Posts: 144
|
no trigger related message on dead letter queue |
|
Back to top |
|
 |
exerk |
Posted: Fri Feb 09, 2007 2:05 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
If you have a working setup elsewhere, dump the appropriate object definitions of the working system and the non-working file and compare attributes.
Cross-check the Services setup of the trigger monitor on a working system with the non-working system. _________________ 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 |
|
 |
wbimb |
Posted: Fri Feb 09, 2007 2:06 am Post subject: |
|
|
 Centurion
Joined: 17 Aug 2006 Posts: 144
|
i think i have got the solution to the problem...let me check it again to confirm |
|
Back to top |
|
 |
kevinf2349 |
Posted: Fri Feb 09, 2007 6:11 am Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
I may be wrong but my understanding was that a windows service cannot have any interaction with a user.
I may be wrong on that but that has always been the assumption I have worked on when designing a windows service. |
|
Back to top |
|
 |
HubertKleinmanns |
Posted: Sun Feb 11, 2007 4:10 am Post subject: |
|
|
 Shaman
Joined: 24 Feb 2004 Posts: 732 Location: Germany
|
wbimb wrote: |
i think i have got the solution to the problem...let me check it again to confirm |
Would you please share the solution? _________________ Regards
Hubert |
|
Back to top |
|
 |
|