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 » Application Triggering not working when defined as service

Post new topic  Reply to topic
 Application Triggering not working when defined as service « View previous topic :: View next topic » 
Author Message
sijtom0703
PostPosted: Tue Nov 29, 2011 1:20 pm    Post subject: Application Triggering not working when defined as service Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Tue Nov 29, 2011 9:17 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
sijtom0703
PostPosted: Wed Nov 30, 2011 12:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
sijtom0703
PostPosted: Wed Nov 30, 2011 12:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Wed Nov 30, 2011 12:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Wed Nov 30, 2011 1:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
sijtom0703
PostPosted: Thu Dec 01, 2011 2:45 pm    Post subject: Reply with quote

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
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 » Application Triggering not working when defined as service
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.