触发监视器不工作
Trigger monitor does not work
我已经创建了一个队列管理器(IBM WebSphere MQ->QueueManagers->new->QueueManager
)
我已经创建了一个启动队列(QueueManager->Queues->New->Local Queue
):
- 队列名称:
INITQUEUE
- 发送消息和获取消息:
Allowed
- 范围:
Queue manager
我已经创建了一个进程(Process Definitions->New->Process Definition
):
- 进程名称:
Paint
- 申请类型:
DOS
- 应用程序 ID:
C:\Users\Desktop\paint.bat
我已经创建了一个应用程序队列(QueueManager->Queues->New->Local Queue
):
- 触发器类型:
First
- 触发控制:
On
- 启动队列:
INITQUEUE
- 进程名称:
sample
我已经创建了一个服务来启动触发器监视器 (Services->New->Service
):
- 服务类型:
server
- 服务控制:
Queue Manager
- 启动命令:
C:\Program Files (x86)\IBM\WebSphere MQ\bin\runmqtrm
- 开始参数:
-q INITQUEUE
当消息放入应用程序队列时,没有触发消息插入启动队列。
当我启动触发监视器时,它会在几秒钟后自动停止。
我该如何纠正这些问题。
这是我启动 runmqtrm 时得到的输出:
C:\Program Files (x86)\IBM\WebSphere MQ\bin>runmqtrm -m QMGR -q INITQUEUE
5724-H72 (C) Copyright IBM Corp. 1994, 2011. ALL RIGHTS RESERVED.
11/3/2017 01:54:43: WebSphere MQ trigger monitor started.
__________________________________________________
11/3/2017 01:55:04: Waiting for a trigger message
AMQERR01.LOG
没有错误。但是这个过程不起作用。
此外,当数据插入应用程序队列时,它不会启用启动队列。
在 CMD 中,它表示随着 WebSphere MQ 触发器监视器启动,启动队列的打开输入计数增加到 1,但在我的 UI 中它仍然保持停止状态。
MQ 服务器版本:
Name: WebSphere MQ
Version: 7.5.0.2
Level: p750-002-130627
BuildType: IKAP - (Production)
Platform: WebSphere MQ for Windows
Mode: 32-bit
O/S: Windows 7 Professional x64 Edition, Build 7601: SP1
InstName: Installation1
InstDesc:
Primary: Yes
InstPath: C:\Program Files (x86)\IBM\WebSphere MQ
DataPath: C:\Program Files (x86)\IBM\WebSphere MQ
MaxCmdLevel: 750
AMQ8351: WebSphere MQ Java environment has not been configured correctly.
AMQ8351: WebSphere MQ Java environment has not been configured correctly.
Name: IBM WebSphere MQ custom channel for Windows Communication Foundatio
n
Version: 7.5.0.2
Level: wn750-002-130611_P
Build Type: Production
Name: IBM Message Service Client for .NET (XMS .NET)
Version: 2.5.0.2
Level: nn250-002-130627
Build Type: Production
Name: IBM Global Security Kit for WebSphere MQ
Version: 8.0.14.28
Build Type: Production
Mode: 32-bit
Name: IBM Global Security Kit for WebSphere MQ
Version: 8.0.14.28
Build Type: Production
Mode: 64-bit
Process name: Paint
傻兔,把戏是给小孩子的!!
MQ 在服务帐户下 运行ning。您正在尝试在后台启动 GUI 应用程序。我确定如果你打开任务管理器会有很多 'mspaint.exe' 运行ning 但不可见。
使用可以在后台 运行 的程序或创建您自己的程序。创建一个名为:hello.bat 的批处理文件并将以下内容放入其中:
echo "Hello World. " %time% > C:\temp\hello.txt
使用 'hello.bat' 更新 MQ 进程定义并进行测试。注意:确保 C:\temp 目录存在。
配置问题是您创建了一个名为 Paint
的进程,但在应用程序队列上您将进程名称设置为 sample
。队列指向的进程名称需要与您创建的进程名称匹配..
MQGem Software presented a presentation at Capitalware's MQ Technical Conference v2.0.1.4 called MQ Triggering 的 Paul Clarke,全面介绍了 IBM MQ 触发,详细介绍了如何解决我发现非常有用的问题。
我已经创建了一个队列管理器(IBM WebSphere MQ->QueueManagers->new->QueueManager
)
我已经创建了一个启动队列(QueueManager->Queues->New->Local Queue
):
- 队列名称:
INITQUEUE
- 发送消息和获取消息:
Allowed
- 范围:
Queue manager
我已经创建了一个进程(Process Definitions->New->Process Definition
):
- 进程名称:
Paint
- 申请类型:
DOS
- 应用程序 ID:
C:\Users\Desktop\paint.bat
我已经创建了一个应用程序队列(QueueManager->Queues->New->Local Queue
):
- 触发器类型:
First
- 触发控制:
On
- 启动队列:
INITQUEUE
- 进程名称:
sample
我已经创建了一个服务来启动触发器监视器 (Services->New->Service
):
- 服务类型:
server
- 服务控制:
Queue Manager
- 启动命令:
C:\Program Files (x86)\IBM\WebSphere MQ\bin\runmqtrm
- 开始参数:
-q INITQUEUE
当消息放入应用程序队列时,没有触发消息插入启动队列。
当我启动触发监视器时,它会在几秒钟后自动停止。
我该如何纠正这些问题。
这是我启动 runmqtrm 时得到的输出:
C:\Program Files (x86)\IBM\WebSphere MQ\bin>runmqtrm -m QMGR -q INITQUEUE
5724-H72 (C) Copyright IBM Corp. 1994, 2011. ALL RIGHTS RESERVED.
11/3/2017 01:54:43: WebSphere MQ trigger monitor started.
__________________________________________________
11/3/2017 01:55:04: Waiting for a trigger message
AMQERR01.LOG
没有错误。但是这个过程不起作用。
此外,当数据插入应用程序队列时,它不会启用启动队列。
在 CMD 中,它表示随着 WebSphere MQ 触发器监视器启动,启动队列的打开输入计数增加到 1,但在我的 UI 中它仍然保持停止状态。
MQ 服务器版本:
Name: WebSphere MQ
Version: 7.5.0.2
Level: p750-002-130627
BuildType: IKAP - (Production)
Platform: WebSphere MQ for Windows
Mode: 32-bit
O/S: Windows 7 Professional x64 Edition, Build 7601: SP1
InstName: Installation1
InstDesc:
Primary: Yes
InstPath: C:\Program Files (x86)\IBM\WebSphere MQ
DataPath: C:\Program Files (x86)\IBM\WebSphere MQ
MaxCmdLevel: 750
AMQ8351: WebSphere MQ Java environment has not been configured correctly.
AMQ8351: WebSphere MQ Java environment has not been configured correctly.
Name: IBM WebSphere MQ custom channel for Windows Communication Foundatio
n
Version: 7.5.0.2
Level: wn750-002-130611_P
Build Type: Production
Name: IBM Message Service Client for .NET (XMS .NET)
Version: 2.5.0.2
Level: nn250-002-130627
Build Type: Production
Name: IBM Global Security Kit for WebSphere MQ
Version: 8.0.14.28
Build Type: Production
Mode: 32-bit
Name: IBM Global Security Kit for WebSphere MQ
Version: 8.0.14.28
Build Type: Production
Mode: 64-bit
Process name: Paint
傻兔,把戏是给小孩子的!!
MQ 在服务帐户下 运行ning。您正在尝试在后台启动 GUI 应用程序。我确定如果你打开任务管理器会有很多 'mspaint.exe' 运行ning 但不可见。
使用可以在后台 运行 的程序或创建您自己的程序。创建一个名为:hello.bat 的批处理文件并将以下内容放入其中:
echo "Hello World. " %time% > C:\temp\hello.txt
使用 'hello.bat' 更新 MQ 进程定义并进行测试。注意:确保 C:\temp 目录存在。
配置问题是您创建了一个名为 Paint
的进程,但在应用程序队列上您将进程名称设置为 sample
。队列指向的进程名称需要与您创建的进程名称匹配..
MQGem Software presented a presentation at Capitalware's MQ Technical Conference v2.0.1.4 called MQ Triggering 的 Paul Clarke,全面介绍了 IBM MQ 触发,详细介绍了如何解决我发现非常有用的问题。