Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trigger monitor does not work

Tags:

ibm-mq

I have created a queue manager (IBM WebSphere MQ->QueueManagers->new->QueueManager)

I have created a initiation Queue (QueueManager->Queues->New->Local Queue):

  • Queue name: INITQUEUE
  • Put Message & Get Message:Allowed
  • Scope:Queue manager

I have created a process (Process Definitions->New->Process Definition):

  • Process name:Paint
  • Application Type:DOS
  • Application ID:C:\Users\Desktop\paint.bat

I have created an application queue (QueueManager->Queues->New->Local Queue):

  • Trigger type: First
  • Trigger control: On
  • Initiation queue: INITQUEUE
  • Process name: sample

I have created a service to start the trigger monitor (Services->New->Service):

  • service type: server
  • service control : Queue Manager
  • Start command: C:\Program Files (x86)\IBM\WebSphere MQ\bin\runmqtrm
  • Start args: -q INITQUEUE

When a messages put to the application Queue, no trigger message is inserted into the initiation Queue.

When I start the trigger monitor, it automatically stops after few seconds.

How do I correct these issues.

This is the output got when I start the 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

There is no error in AMQERR01.LOG. But the process is not working. Also when a data is inserted into Application queue, it is does not enable the initiation queue. And in CMD it says as WebSphere MQ trigger monitor started,initiation queue's open input count increases to 1 but in my UI it still remains as stopped.

Version of MQ server:

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  
like image 581
Ziva Avatar asked Feb 02 '26 08:02

Ziva


1 Answers

The issue with the configuration is that you created a Process called Paint, but on the application queue you set the Process name to sample. The name of the process the queue points to needs to match the name of the process that you created..


Paul Clarke of MQGem Software presented a presentation at Capitalware's MQ Technical Conference v2.0.1.4 called MQ Triggering which is a comprehensive presentation on IBM MQ Triggering with details on how to troubleshoot issues that I have found very useful.

like image 84
JoshMc Avatar answered Feb 04 '26 01:02

JoshMc



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!