Author |
Message
|
sijtom0703 |
Posted: Tue Nov 29, 2011 1:20 pm Post subject: Application Triggering not working when defined as service |
|
|
 Voyager
Joined: 28 May 2011 Posts: 84 Location: USA
|
Hi,
Have an issue which is bugging me
I have defined a simple Application Triggering in MQ v 7.0.1 (Trial version) in Windows 7 platform.
In a local queue I have defined Triggering for EVERY message and defined INITQ and a Process definition which will invoke the windows calc.exe
Now the Triggering will work perfect if I start the Trigger Monitor(runmqtrm.exe) in command line with the local user.
It will not work if I run the Trigger Monitor as service defined with MUSR_MQADMIN user.
Nothing is logged in error logs or the custom Trigger logs and MUSR_MQADMIN is added in Administrators group and mqm just like the local user.
Please advice.... |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Nov 29, 2011 9:17 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Working as designed. You cannot run a foreground / interactive application like calc in the background.
Your triggered apps should be able to run from a command prompt without user intervention and close/terminate without user intervention.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
sijtom0703 |
Posted: Wed Nov 30, 2011 12:22 pm Post subject: |
|
|
 Voyager
Joined: 28 May 2011 Posts: 84 Location: USA
|
Hi
Thanks!
So you mean to say if we define Trigger Monitor as service then it can trigger only applications running in background!!
I think I was not able to trigger a batch file in Windows when I used Trigger Monitor as service... |
|
Back to top |
|
 |
sijtom0703 |
Posted: Wed Nov 30, 2011 12:24 pm Post subject: |
|
|
 Voyager
Joined: 28 May 2011 Posts: 84 Location: USA
|
The batch file has nothing other than just echo some text.
Any idea on this?? |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Nov 30, 2011 12:45 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Pretend that the Trigger Monitor is a real windows Service, that is started from the services control panel.
Now ask your self what kind of environment that program runs under, and what kinds of programs it can access and launch. Then ask yourself what environment any programs that it launchs will run under.
Then open up a windows command shell in your interactive user session and use the runmqtrm command to run a trigger monitor. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Nov 30, 2011 1:02 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
sijtom0703 wrote: |
The batch file has nothing other than just echo some text. |
And if the batch file has been triggered as a Windows service where will that text be echoed to? Where is the desktop for a Windows service? How will you see this text on your desktop?
What happens if instead it echo some text into a file? Perhaps a file created with a timestamp as part of it's name (easy enough with a batch file)? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
sijtom0703 |
Posted: Thu Dec 01, 2011 2:45 pm Post subject: |
|
|
 Voyager
Joined: 28 May 2011 Posts: 84 Location: USA
|
Thanks jeff/Victor for making it clear
A batch script for copying file is working fine with Trigger Monitor as Service |
|
Back to top |
|
 |
|