Trigger Monitor as MQ service object - how to get status

I created an MQ Service object to start my Trigger Monitor this way: -

DEFINE SERVICE('TriggerMonitor') +
       CONTROL(QMGR) +
       STARTCMD('C:\Program Files (x86)\IBM\WebSphere MQ\bin\runmqtm') +
       STARTARG('-m TriggerTest -q InitQueue')

      

Even though I have set runmqtmc.exe in the "Start Command" property, it shows me the "Service Status" as "Stopping". Is there a way to make this runmqtmc run as a background service for windows without having to run it on the command line?

+3


source to share


1 answer


To see the status of a program running as an MQ service object, it must be of type SERVER

. The default is a type COMMAND

that allows you to run as many programs, but therefore means you cannot display its state. Define the service object with SERVTYPE(SERVER)

and then will DISPLAY SVSTATUS

display the status of the running program.

Read more about this in Working with services



Also, another helpful hint of your meaning STARTCMD

, did you know that you can use replaceable insert instead of providing the full installation path to the program. Read more about this in Swapping Inserts in Service Definitions

+2


source







All Articles