将Monitor Monitor作为MQ服务对象-如何获取状态 [英] Trigger Monitor as an MQ Service object - how to get status

查看:91
本文介绍了将Monitor Monitor作为MQ服务对象-如何获取状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个MQ服务对象来运行我的触发器监视器,从而:-

I have created an MQ Service object to run my Trigger Monitor thus:-

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

即使我在启动命令中设置了runmqtrm.exe,属性,向我显示服务状态作为停止。是否可以使该runmqtmc在Windows上作为后台服务运行而不必在命令提示符下运行?

Even though I set runmqtrm.exe in "Start Command" property it is showing me "Service Status" as Stopping. Is there way to make this runmqtmc running as a background service on windows without having to run it in a command prompt?

推荐答案

在为了查看作为MQ服务对象运行的程序的状态,它的类型必须为 SERVER 。默认值为 COMMAND 类型,它使您可以运行尽可能多的程序,但因此您无法显示其状态。使用 SERVTYPE(SERVER)定义服务对象,然后 DISPLAY SVSTATUS 将显示正在运行的程序的状态。

In order to see status of a program running as an MQ Service Object, it must be of type SERVER. The default is type COMMAND which allows you to have as many of the program running, but therefore means you can't display status of it. Define the Service Object with SERVTYPE(SERVER) and then DISPLAY SVSTATUS will show status of the running program.

使用服务

此外,查看您的 STARTCMD另一个有用的提示值,您是否知道可以使用可替换的插入内容,而不必提供程序的完整安装路径。在服务定义上的可替换插入

Also, another helpful hint looking at your STARTCMD value, did you know that you can use a replaceable insert instead of having to provide the full installation path to the program. Read more about this in Replaceable inserts on service definitions

这篇关于将Monitor Monitor作为MQ服务对象-如何获取状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆