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 API Support » triggered c++ program does not run when runmqtrm win service

Post new topic  Reply to topic
 triggered c++ program does not run when runmqtrm win service « View previous topic :: View next topic » 
Author Message
hornbeam123
PostPosted: Fri Oct 01, 2004 2:01 pm    Post subject: triggered c++ program does not run when runmqtrm win service Reply with quote

Centurion

Joined: 01 Nov 2003
Posts: 101

Program works fine when runmqtrm runs from a dos window either in background or foreground but not when runmqtrm is a windows service. I have done this before several years ago but can't remember what I need to do. program was built with ms vis stud 6.

Anybody help out there?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Oct 01, 2004 5:39 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

http://www.mqseries.net/phpBB2/viewtopic.php?t=12988
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
hornbeam123
PostPosted: Sat Oct 02, 2004 3:17 pm    Post subject: triggered c++ program does not run when runmqtrm win service Reply with quote

Centurion

Joined: 01 Nov 2003
Posts: 101

Jeff,

Success. The notes on the subject are good.

Just one change required to get this working when runmqtrm running as a service, and that was to precede the program exe with a start command.

On PROCESS object Application Identifier set to "start getput.exe"

Some further observations : I found if you start a dos window, initiate runmqtrm itself in another (start runmqtrm ....) window and the appln process itself also invoked with the application identifier of the process object also using the preceding start command (as above) another window is opened for this appln, when it ends the window is closed. If the appln was not started this way and if it waited indefinitely it would wait the runmqtrm also I believe.

As my appln program issues a GET with wait I was able to see it running from task manager and disappearing when the wait expired and the program went to eoj.


Nice one.Thanks.
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 API Support » triggered c++ program does not run when runmqtrm win 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.